<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Simple Example of Cursor &#8211; Sample Cursor Part 2</title>
	<atom:link href="http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sun, 12 Feb 2012 09:22:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Serge Rafes</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-236829</link>
		<dc:creator><![CDATA[Serge Rafes]]></dc:creator>
		<pubDate>Sat, 14 Jan 2012 00:08:53 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-236829</guid>
		<description><![CDATA[Hello,

i&#039;m not a programmer but i have an urgent need to have a piece of code to update a table on demand.i need to flag x number of records with the same state code based on a look up table which has two columns State, TotalNumber.

please help!!!]]></description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>i&#8217;m not a programmer but i have an urgent need to have a piece of code to update a table on demand.i need to flag x number of records with the same state code based on a look up table which has two columns State, TotalNumber.</p>
<p>please help!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raja-Developer</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-213916</link>
		<dc:creator><![CDATA[Raja-Developer]]></dc:creator>
		<pubDate>Fri, 09 Dec 2011 07:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-213916</guid>
		<description><![CDATA[yeah very superb examble it&#039;s very use full 

Thanks,
Raja.R]]></description>
		<content:encoded><![CDATA[<p>yeah very superb examble it&#8217;s very use full </p>
<p>Thanks,<br />
Raja.R</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FoodTiger</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-177279</link>
		<dc:creator><![CDATA[FoodTiger]]></dc:creator>
		<pubDate>Mon, 10 Oct 2011 22:27:33 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-177279</guid>
		<description><![CDATA[i like you code
no formating is better
make computer more fast]]></description>
		<content:encoded><![CDATA[<p>i like you code<br />
no formating is better<br />
make computer more fast</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mangal</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-175970</link>
		<dc:creator><![CDATA[mangal]]></dc:creator>
		<pubDate>Fri, 07 Oct 2011 04:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-175970</guid>
		<description><![CDATA[hoe can i update multiple row in sqlserver but there is no primary or unique key]]></description>
		<content:encoded><![CDATA[<p>hoe can i update multiple row in sqlserver but there is no primary or unique key</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shobhit Gupta</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-174570</link>
		<dc:creator><![CDATA[Shobhit Gupta]]></dc:creator>
		<pubDate>Mon, 03 Oct 2011 10:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-174570</guid>
		<description><![CDATA[hello i have a question ...
suppose a query 
select * from emp where empid in(1,5,8,2,4,10,9);

what i want is 
the result should come as in the same sequence as the sequence maintained in above query as(1,5,8,2,4,10,9).

generally what happen is the result come in sorted order but i do not want that sorted order.]]></description>
		<content:encoded><![CDATA[<p>hello i have a question &#8230;<br />
suppose a query<br />
select * from emp where empid in(1,5,8,2,4,10,9);</p>
<p>what i want is<br />
the result should come as in the same sequence as the sequence maintained in above query as(1,5,8,2,4,10,9).</p>
<p>generally what happen is the result come in sorted order but i do not want that sorted order.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-170921</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 23 Sep 2011 14:25:37 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-170921</guid>
		<description><![CDATA[You can use it just like you use for other statements. Refer this to know how to use it
http://beyondrelational.com/blogs/madhivanan/archive/2010/08/11/various-usages-of-if-else-clause-in-sql-server.aspx]]></description>
		<content:encoded><![CDATA[<p>You can use it just like you use for other statements. Refer this to know how to use it<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2010/08/11/various-usages-of-if-else-clause-in-sql-server.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2010/08/11/various-usages-of-if-else-clause-in-sql-server.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-170918</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 23 Sep 2011 14:18:27 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-170918</guid>
		<description><![CDATA[This is not possible until you use dynamic sql. Can you give us more informations on what you are doing with cursor?]]></description>
		<content:encoded><![CDATA[<p>This is not possible until you use dynamic sql. Can you give us more informations on what you are doing with cursor?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-170917</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 23 Sep 2011 14:17:29 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-170917</guid>
		<description><![CDATA[This is very simple

update fu1 set uf=right(uf,4)]]></description>
		<content:encoded><![CDATA[<p>This is very simple</p>
<p>update fu1 set uf=right(uf,4)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pradeep</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-170911</link>
		<dc:creator><![CDATA[pradeep]]></dc:creator>
		<pubDate>Fri, 23 Sep 2011 13:49:18 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-170911</guid>
		<description><![CDATA[create table fu1(uf varchar(20),id int)
insert into fu1(uf,id)
select &#039;00000090&#039;,1
union all
select&#039;000080&#039;,2
union all
select &#039;000189&#039;,3
select * from fu1
update fu1 set uf=&#039;0090&#039; where id=1
update fu1 set uf=&#039;0080&#039; where id=2
update fu1 set uf=&#039;0189&#039; where id=3]]></description>
		<content:encoded><![CDATA[<p>create table fu1(uf varchar(20),id int)<br />
insert into fu1(uf,id)<br />
select &#8217;00000090&#8242;,1<br />
union all<br />
select&#8217;000080&#8242;,2<br />
union all<br />
select &#8217;000189&#8242;,3<br />
select * from fu1<br />
update fu1 set uf=&#8217;0090&#8242; where id=1<br />
update fu1 set uf=&#8217;0080&#8242; where id=2<br />
update fu1 set uf=&#8217;0189&#8242; where id=3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankit</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-140757</link>
		<dc:creator><![CDATA[Ankit]]></dc:creator>
		<pubDate>Mon, 13 Jun 2011 17:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-140757</guid>
		<description><![CDATA[Hi Pinal,

Can you help me with CASE Update with Cursor. The cursor is workin fine but not updating the value properly.

------
Declare @state varchar (20) , @city varchar (20) ,@occgrp varchar (10) 
 
Declare  dimclinfo Cursor
For
Select state,city , occgrp 
from dimclinfo
order by state,city,occgrp

open dimclinfo;
while @@fetch_status = 0 
begin

Fetch next from dimclinfo
into @state , @city  , @occgrp    

update dimclinfo
set combinationid  = CASE
 WHEN ( @state is null and @city is null and @occgrp = &#039;Overall&#039; )
THEN  411
 WHEN  (@state is not null and @city is null and @occgrp = &#039;Overall&#039; )
THEN  412
 WHEN  ( @state is null and @city is not null and @occgrp = &#039;Overall&#039;)
THEN  413
 WHEN (@state is null and @city is null and @occgrp != &#039;Overall&#039; )
THEN  414
 WHEN (@state is not null and @city is null and @occgrp != &#039;Overall&#039;)
THEN  415
 WHEN  ( @state is not null and @city is not null and @occgrp!= &#039;Overall&#039;)
THEN  416  -- It is populating only this value throughout
else 1
END
 
Fetch next from dimclinfo
into @state , @city  ,@occgrp  

END 
CLOSE dimclinfo ;
Deallocate dimclinfo;]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Can you help me with CASE Update with Cursor. The cursor is workin fine but not updating the value properly.</p>
<p>&#8212;&#8212;<br />
Declare @state varchar (20) , @city varchar (20) ,@occgrp varchar (10) </p>
<p>Declare  dimclinfo Cursor<br />
For<br />
Select state,city , occgrp<br />
from dimclinfo<br />
order by state,city,occgrp</p>
<p>open dimclinfo;<br />
while @@fetch_status = 0<br />
begin</p>
<p>Fetch next from dimclinfo<br />
into @state , @city  , @occgrp    </p>
<p>update dimclinfo<br />
set combinationid  = CASE<br />
 WHEN ( @state is null and @city is null and @occgrp = &#8216;Overall&#8217; )<br />
THEN  411<br />
 WHEN  (@state is not null and @city is null and @occgrp = &#8216;Overall&#8217; )<br />
THEN  412<br />
 WHEN  ( @state is null and @city is not null and @occgrp = &#8216;Overall&#8217;)<br />
THEN  413<br />
 WHEN (@state is null and @city is null and @occgrp != &#8216;Overall&#8217; )<br />
THEN  414<br />
 WHEN (@state is not null and @city is null and @occgrp != &#8216;Overall&#8217;)<br />
THEN  415<br />
 WHEN  ( @state is not null and @city is not null and @occgrp!= &#8216;Overall&#8217;)<br />
THEN  416  &#8212; It is populating only this value throughout<br />
else 1<br />
END</p>
<p>Fetch next from dimclinfo<br />
into @state , @city  ,@occgrp  </p>
<p>END<br />
CLOSE dimclinfo ;<br />
Deallocate dimclinfo;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: R.Rajesh</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-137598</link>
		<dc:creator><![CDATA[R.Rajesh]]></dc:creator>
		<pubDate>Mon, 30 May 2011 12:47:40 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-137598</guid>
		<description><![CDATA[Hai Pinal,

      How Could i use if else inside cursor.]]></description>
		<content:encoded><![CDATA[<p>Hai Pinal,</p>
<p>      How Could i use if else inside cursor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunil Kumar Kaushal</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-133962</link>
		<dc:creator><![CDATA[Sunil Kumar Kaushal]]></dc:creator>
		<pubDate>Wed, 11 May 2011 12:22:18 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-133962</guid>
		<description><![CDATA[Hi,

I have created a cursor on Trigger but getting an error. Row is getting effected after updation.

Server: Msg 18025, Level 16, State 1, Line 0
xp_sendmail: failed with mail error 0x80040111
(1 row(s) affected)

Can any one help me to resolve this error.. 

declare @deptno int
declare @deptname varchar(10)

declare curdept cursor for
SELECT vdeptno, vdeptname from departments

OPEN curdept

FETCH curdept INTO @deptno, @deptname
	WHILE(@@fetch_status=0)
	BEGIN
	Print &#039;Department No =&#039; + cast(@deptno as varchar(10)
	Print @deptname

FETCH curdept INTO @deptno, @deptname
END

CLOSE curdept
DEALLOCATE curdept]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have created a cursor on Trigger but getting an error. Row is getting effected after updation.</p>
<p>Server: Msg 18025, Level 16, State 1, Line 0<br />
xp_sendmail: failed with mail error 0&#215;80040111<br />
(1 row(s) affected)</p>
<p>Can any one help me to resolve this error.. </p>
<p>declare @deptno int<br />
declare @deptname varchar(10)</p>
<p>declare curdept cursor for<br />
SELECT vdeptno, vdeptname from departments</p>
<p>OPEN curdept</p>
<p>FETCH curdept INTO @deptno, @deptname<br />
	WHILE(@@fetch_status=0)<br />
	BEGIN<br />
	Print &#8216;Department No =&#8217; + cast(@deptno as varchar(10)<br />
	Print @deptname</p>
<p>FETCH curdept INTO @deptno, @deptname<br />
END</p>
<p>CLOSE curdept<br />
DEALLOCATE curdept</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunil Kumar Kaushal</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-133788</link>
		<dc:creator><![CDATA[Sunil Kumar Kaushal]]></dc:creator>
		<pubDate>Tue, 10 May 2011 08:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-133788</guid>
		<description><![CDATA[Hi All,

This blog is very useful to everyone we can discuss our probs here &amp; got a good response with less time. 

By the way my self Sunil Kumar kaushal i am wokring as a MIS Analyst but i want to become a SQL Develper, i have good knowledge of SQL SERVER 2005 but i want to work on live project.

Please guide me how can i do that..

Regards
Sunil Kumar Kaushal]]></description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>This blog is very useful to everyone we can discuss our probs here &amp; got a good response with less time. </p>
<p>By the way my self Sunil Kumar kaushal i am wokring as a MIS Analyst but i want to become a SQL Develper, i have good knowledge of SQL SERVER 2005 but i want to work on live project.</p>
<p>Please guide me how can i do that..</p>
<p>Regards<br />
Sunil Kumar Kaushal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-131764</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 28 Apr 2011 14:11:52 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-131764</guid>
		<description><![CDATA[1 Search for split function in this site
2 you need to use three part names dbname.ownername.objectname in the procedure]]></description>
		<content:encoded><![CDATA[<p>1 Search for split function in this site<br />
2 you need to use three part names dbname.ownername.objectname in the procedure</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veeru Patil</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-131444</link>
		<dc:creator><![CDATA[Veeru Patil]]></dc:creator>
		<pubDate>Wed, 27 Apr 2011 10:08:49 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-131444</guid>
		<description><![CDATA[1) how to access indivudal values in a  multi value filed.

for eg:

table1
col1
(1,2,3)
i want extract each value from col1 and wants to compare with single value column.

2) how to enter into particular user database in stored procedure.]]></description>
		<content:encoded><![CDATA[<p>1) how to access indivudal values in a  multi value filed.</p>
<p>for eg:</p>
<p>table1<br />
col1<br />
(1,2,3)<br />
i want extract each value from col1 and wants to compare with single value column.</p>
<p>2) how to enter into particular user database in stored procedure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-129539</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 18 Apr 2011 11:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-129539</guid>
		<description><![CDATA[use right(col,4)]]></description>
		<content:encoded><![CDATA[<p>use right(col,4)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SRAVANHTI</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-128685</link>
		<dc:creator><![CDATA[SRAVANHTI]]></dc:creator>
		<pubDate>Wed, 13 Apr 2011 15:29:25 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-128685</guid>
		<description><![CDATA[Hi EveryOne,


I need a solution to this Situation .
In a table there is a column with values 00090,000080,000189 and so on
I need to update the column of the table to 0090,0080,0189 and so on.the data type of the column is varchar(20)
Can we do that .

If so please let me know.


Thanks,
Sravanthi]]></description>
		<content:encoded><![CDATA[<p>Hi EveryOne,</p>
<p>I need a solution to this Situation .<br />
In a table there is a column with values 00090,000080,000189 and so on<br />
I need to update the column of the table to 0090,0080,0189 and so on.the data type of the column is varchar(20)<br />
Can we do that .</p>
<p>If so please let me know.</p>
<p>Thanks,<br />
Sravanthi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desigan</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-103573</link>
		<dc:creator><![CDATA[desigan]]></dc:creator>
		<pubDate>Fri, 03 Dec 2010 10:55:28 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-103573</guid>
		<description><![CDATA[Hi all,
       Im using cursor in my procedure,Im getting the value from 1 table,that value is stored in local variable @var,that value is the column name of another table.I want to pass the @var in Cursor Select Statement.How i do that..the Below statements im using...

Set @var=(select field from table1)

Declare cursorname cursor for
Select @var from table2 where No=2   ---&gt;Getting Error
open cursorname]]></description>
		<content:encoded><![CDATA[<p>Hi all,<br />
       Im using cursor in my procedure,Im getting the value from 1 table,that value is stored in local variable @var,that value is the column name of another table.I want to pass the @var in Cursor Select Statement.How i do that..the Below statements im using&#8230;</p>
<p>Set @var=(select field from table1)</p>
<p>Declare cursorname cursor for<br />
Select @var from table2 where No=2   &#8212;&gt;Getting Error<br />
open cursorname</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-91321</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Tue, 05 Oct 2010 13:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-91321</guid>
		<description><![CDATA[Dont concentrate on cursor. Search for Set based approach in Google/Bing]]></description>
		<content:encoded><![CDATA[<p>Dont concentrate on cursor. Search for Set based approach in Google/Bing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr Thipphaphone</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-91178</link>
		<dc:creator><![CDATA[Mr Thipphaphone]]></dc:creator>
		<pubDate>Tue, 05 Oct 2010 04:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-91178</guid>
		<description><![CDATA[Hi,
please you send me the e-book vie email address of  cursor  of sql server 2005
I want  to learn more 
thank you sir
Phone]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
please you send me the e-book vie email address of  cursor  of sql server 2005<br />
I want  to learn more<br />
thank you sir<br />
Phone</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ike</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-73316</link>
		<dc:creator><![CDATA[Ike]]></dc:creator>
		<pubDate>Thu, 27 May 2010 00:40:59 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-73316</guid>
		<description><![CDATA[Is there a way to populate a cursor with multiple sql statements?]]></description>
		<content:encoded><![CDATA[<p>Is there a way to populate a cursor with multiple sql statements?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-73177</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Wed, 26 May 2010 10:13:26 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-73177</guid>
		<description><![CDATA[What is your criteria about clean?
If you post it here, some one may give you a set-based code when you dont need a loop]]></description>
		<content:encoded><![CDATA[<p>What is your criteria about clean?<br />
If you post it here, some one may give you a set-based code when you dont need a loop</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-73175</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Wed, 26 May 2010 10:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-73175</guid>
		<description><![CDATA[Refer this blog post and see if that answers it
There are two methods
http://beyondrelational.com/blogs/madhivanan/archive/2009/09/08/cursor-statuses.aspx]]></description>
		<content:encoded><![CDATA[<p>Refer this blog post and see if that answers it<br />
There are two methods<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2009/09/08/cursor-statuses.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2009/09/08/cursor-statuses.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-73174</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Wed, 26 May 2010 10:02:26 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-73174</guid>
		<description><![CDATA[You can&#039;t do that. You may need to make use of table variable

declare @t table(col1 int, col2 char(1),....)]]></description>
		<content:encoded><![CDATA[<p>You can&#8217;t do that. You may need to make use of table variable</p>
<p>declare @t table(col1 int, col2 char(1),&#8230;.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/03/05/sql-server-simple-example-of-cursor-sample-cursor-part-2/#comment-73173</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Wed, 26 May 2010 10:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=527#comment-73173</guid>
		<description><![CDATA[Can you give us some sample data and exprected result?
It seems you need to use concatenation method specified here
See the code under &quot;Generate data in csv format &quot;

http://beyondrelational.com/blogs/madhivanan/archive/2009/06/10/quirky-update-in-sql-server.aspx]]></description>
		<content:encoded><![CDATA[<p>Can you give us some sample data and exprected result?<br />
It seems you need to use concatenation method specified here<br />
See the code under &#8220;Generate data in csv format &#8221;</p>
<p><a href="http://beyondrelational.com/blogs/madhivanan/archive/2009/06/10/quirky-update-in-sql-server.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2009/06/10/quirky-update-in-sql-server.aspx</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

