<?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</title>
	<atom:link href="http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 09 Feb 2012 08:55:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: sahil</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-247996</link>
		<dc:creator><![CDATA[sahil]]></dc:creator>
		<pubDate>Sat, 04 Feb 2012 04:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-247996</guid>
		<description><![CDATA[Hi All,

I have an array of emails and i want to split every email and check every email from database and its correspondence Status.
Please Help!]]></description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I have an array of emails and i want to split every email and check every email from database and its correspondence Status.<br />
Please Help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul Kumar</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-244392</link>
		<dc:creator><![CDATA[Rahul Kumar]]></dc:creator>
		<pubDate>Fri, 27 Jan 2012 05:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-244392</guid>
		<description><![CDATA[Great Article that helps me lot but i just want to know can i select multiple values in cursor for]]></description>
		<content:encoded><![CDATA[<p>Great Article that helps me lot but i just want to know can i select multiple values in cursor for</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Using RANKING Functions Instead of SQL Looping Logic of Cursor &#8211; Quiz &#8211; Puzzle &#8211; 8 of 31 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-233870</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Using RANKING Functions Instead of SQL Looping Logic of Cursor &#8211; Quiz &#8211; Puzzle &#8211; 8 of 31 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Mon, 09 Jan 2012 01:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-233870</guid>
		<description><![CDATA[[...] of Database  Simple Use of Cursor to Print All Stored Procedures of Database Including Schema  Simple Example of Cursor  Cursor to Kill All Process in [...]]]></description>
		<content:encoded><![CDATA[<p>[...] of Database  Simple Use of Cursor to Print All Stored Procedures of Database Including Schema  Simple Example of Cursor  Cursor to Kill All Process in [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kishor</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-226572</link>
		<dc:creator><![CDATA[kishor]]></dc:creator>
		<pubDate>Tue, 27 Dec 2011 06:34:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-226572</guid>
		<description><![CDATA[Hi pinal
give me solution of two tables compair for reconcillation
Thank&#039;s
Kishor]]></description>
		<content:encoded><![CDATA[<p>Hi pinal<br />
give me solution of two tables compair for reconcillation<br />
Thank&#8217;s<br />
Kishor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siva</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-219341</link>
		<dc:creator><![CDATA[siva]]></dc:creator>
		<pubDate>Fri, 16 Dec 2011 12:14:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-219341</guid>
		<description><![CDATA[Hi,

Any suggestions on my issue?

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Any suggestions on my issue?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siva</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-217076</link>
		<dc:creator><![CDATA[siva]]></dc:creator>
		<pubDate>Tue, 13 Dec 2011 22:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-217076</guid>
		<description><![CDATA[Hi,

I have written a cursor in MS SQL server and was able to execute it also. But i have an issue where it&#039;s not displaying the results in the order what i have written it&#039;s displaying randomly. First I am selecting the records from Info table and then from sinfo table.

Example:

DECLARE emails CURSOR FOR select distinct LTRIM(RTRIM(useremail)) from Info
UNION 
select DISTINCT LTRIM(RTRIM(useremail)) from SInfo
SET NOCOUNT ON
DECLARE @email varchar(100)
OPEN emails
      FETCH NEXT from emails
            WHILE @@FETCH_STATUS = 0
            BEGIN
                  FETCH NEXT from emails into @email
            select username, password, email from info where useremail = @email
            union
            select username, password, email from Sinfo where useremail = @email
END
CLOSE emails
DEALLOCATE emails

Any suggestions would be much appreciated.

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have written a cursor in MS SQL server and was able to execute it also. But i have an issue where it&#8217;s not displaying the results in the order what i have written it&#8217;s displaying randomly. First I am selecting the records from Info table and then from sinfo table.</p>
<p>Example:</p>
<p>DECLARE emails CURSOR FOR select distinct LTRIM(RTRIM(useremail)) from Info<br />
UNION<br />
select DISTINCT LTRIM(RTRIM(useremail)) from SInfo<br />
SET NOCOUNT ON<br />
DECLARE @email varchar(100)<br />
OPEN emails<br />
      FETCH NEXT from emails<br />
            WHILE @@FETCH_STATUS = 0<br />
            BEGIN<br />
                  FETCH NEXT from emails into @email<br />
            select username, password, email from info where useremail = @email<br />
            union<br />
            select username, password, email from Sinfo where useremail = @email<br />
END<br />
CLOSE emails<br />
DEALLOCATE emails</p>
<p>Any suggestions would be much appreciated.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kavitha</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-210676</link>
		<dc:creator><![CDATA[kavitha]]></dc:creator>
		<pubDate>Sun, 04 Dec 2011 14:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-210676</guid>
		<description><![CDATA[diff bet result set,data set and data table in sql]]></description>
		<content:encoded><![CDATA[<p>diff bet result set,data set and data table in sql</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anjuna</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-206439</link>
		<dc:creator><![CDATA[anjuna]]></dc:creator>
		<pubDate>Mon, 28 Nov 2011 11:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-206439</guid>
		<description><![CDATA[how to display grade in a student table on the basis of percentage of marks.
parametres used @name,@percentage,@grade]]></description>
		<content:encoded><![CDATA[<p>how to display grade in a student table on the basis of percentage of marks.<br />
parametres used @name,@percentage,@grade</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bhanu</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-203401</link>
		<dc:creator><![CDATA[Bhanu]]></dc:creator>
		<pubDate>Thu, 24 Nov 2011 05:15:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-203401</guid>
		<description><![CDATA[This is very usefull  for  beginners .]]></description>
		<content:encoded><![CDATA[<p>This is very usefull  for  beginners .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A.Moorthy</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-170164</link>
		<dc:creator><![CDATA[A.Moorthy]]></dc:creator>
		<pubDate>Wed, 21 Sep 2011 04:56:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-170164</guid>
		<description><![CDATA[It is very useful for beginners of sql.]]></description>
		<content:encoded><![CDATA[<p>It is very useful for beginners of sql.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skibs500</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-161480</link>
		<dc:creator><![CDATA[skibs500]]></dc:creator>
		<pubDate>Wed, 24 Aug 2011 19:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-161480</guid>
		<description><![CDATA[Thank you, I have always found information you present very useful and this one most of all.  I just completed the first CURSOR statement I understood!  You have made it possible for me to fetch data that was stored in such a way that it was not easily done.  Thanks!]]></description>
		<content:encoded><![CDATA[<p>Thank you, I have always found information you present very useful and this one most of all.  I just completed the first CURSOR statement I understood!  You have made it possible for me to fetch data that was stored in such a way that it was not easily done.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-161005</link>
		<dc:creator><![CDATA[Raj]]></dc:creator>
		<pubDate>Tue, 23 Aug 2011 12:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-161005</guid>
		<description><![CDATA[hi ,

very useful....]]></description>
		<content:encoded><![CDATA[<p>hi ,</p>
<p>very useful&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharepoint tips</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-161002</link>
		<dc:creator><![CDATA[Sharepoint tips]]></dc:creator>
		<pubDate>Tue, 23 Aug 2011 12:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-161002</guid>
		<description><![CDATA[hi ,

it is very useful..........]]></description>
		<content:encoded><![CDATA[<p>hi ,</p>
<p>it is very useful&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Talha</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-149597</link>
		<dc:creator><![CDATA[Talha]]></dc:creator>
		<pubDate>Wed, 20 Jul 2011 12:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-149597</guid>
		<description><![CDATA[its very simple and to the point example]]></description>
		<content:encoded><![CDATA[<p>its very simple and to the point example</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunaina Jain</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-147628</link>
		<dc:creator><![CDATA[Sunaina Jain]]></dc:creator>
		<pubDate>Tue, 12 Jul 2011 05:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-147628</guid>
		<description><![CDATA[Dear Sir
Thanks for helping me.I am really your big fan]]></description>
		<content:encoded><![CDATA[<p>Dear Sir<br />
Thanks for helping me.I am really your big fan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: R.Rajesh</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-137595</link>
		<dc:creator><![CDATA[R.Rajesh]]></dc:creator>
		<pubDate>Mon, 30 May 2011 12:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-137595</guid>
		<description><![CDATA[Hi Pinal,

      This is  R.Rajesh from Tamilnadu.Ur Articles are Excellent to beginners like me.Keep this long and serve to us like this.Thanks Alot.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>      This is  R.Rajesh from Tamilnadu.Ur Articles are Excellent to beginners like me.Keep this long and serve to us like this.Thanks Alot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hiren</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-137023</link>
		<dc:creator><![CDATA[hiren]]></dc:creator>
		<pubDate>Fri, 27 May 2011 11:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-137023</guid>
		<description><![CDATA[Nice article,

Thanks]]></description>
		<content:encoded><![CDATA[<p>Nice article,</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-130344</link>
		<dc:creator><![CDATA[Deepak]]></dc:creator>
		<pubDate>Thu, 21 Apr 2011 10:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-130344</guid>
		<description><![CDATA[Hi Im Deepak

I want to know can we pass the paremater in cursor loop 

Eg:
DECLARE my_cursor CURSOR FOR
select distinct(floors) from  Dealer where bh = @bh
OPEN my_cursor
FETCH NEXT FROM my_cursor
INTO @Event_ID

can you pls let me know]]></description>
		<content:encoded><![CDATA[<p>Hi Im Deepak</p>
<p>I want to know can we pass the paremater in cursor loop </p>
<p>Eg:<br />
DECLARE my_cursor CURSOR FOR<br />
select distinct(floors) from  Dealer where bh = @bh<br />
OPEN my_cursor<br />
FETCH NEXT FROM my_cursor<br />
INTO @Event_ID</p>
<p>can you pls let me know</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh Gupta</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-130145</link>
		<dc:creator><![CDATA[Rajesh Gupta]]></dc:creator>
		<pubDate>Wed, 20 Apr 2011 11:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-130145</guid>
		<description><![CDATA[Hi Pinal Dave

I just want to say thanks, thanks to your blog because you and your blog helping me always.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal Dave</p>
<p>I just want to say thanks, thanks to your blog because you and your blog helping me always.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-125910</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 01 Apr 2011 06:05:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-125910</guid>
		<description><![CDATA[Note that many times the cursor can be replaced with simple set based approach]]></description>
		<content:encoded><![CDATA[<p>Note that many times the cursor can be replaced with simple set based approach</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhu Menon</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-125398</link>
		<dc:creator><![CDATA[Madhu Menon]]></dc:creator>
		<pubDate>Mon, 28 Mar 2011 19:21:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-125398</guid>
		<description><![CDATA[Hi Pinal,

Thanks alot, i had completed forgotten how to write cursor,
was looking for a simple example, and found yours.

Thanks
Menon]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Thanks alot, i had completed forgotten how to write cursor,<br />
was looking for a simple example, and found yours.</p>
<p>Thanks<br />
Menon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sneha Patil</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-124493</link>
		<dc:creator><![CDATA[Sneha Patil]]></dc:creator>
		<pubDate>Wed, 23 Mar 2011 05:49:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-124493</guid>
		<description><![CDATA[hii... can anyone plz tell me how to retrive the value of cursor output type variable in java.. i have a following Stored Procedure...

Create PROCEDURE [dbo].[USP_VIEW_PAYMENT]
(
	@pPartyId int,
	@pAccNum varchar(20),
	@cGETDATA cursor varying output
)
AS
Begin
/*	select es.*, tm.Description  
	from T_TRANSACTION_REQUEST tr, T_EMI_SCHEDULE es, M_TXNSTATUS_MASTER tm
	where tr.Txn_Ref_Number=es.Txn_Ref_Number 
	and es.Status=tm.Status_ID 
	and tr.Party_ID=@pPartyId 
	and tr.Account_No=@pAccNum 
	Order by es.Txn_Ref_Number, es.Emi_Ref_Number 
	
End*/

declare @vWhere as varchar(500)
DECLARE @VAR1	VARCHAR(50)
DECLARE cGETDATA CURSOR FOR

 	select Txn_Ref_Number from T_TRANSACTION_REQUEST where Party_ID=@pPartyId and Account_No=@pAccNum

OPEN cGETDATA

FETCH NEXT FROM cGETDATA INTO @VAR1

WHILE @@FETCH_STATUS = 0 
BEGIN
	SET NOCOUNT ON;
	declare @sQuery VARCHAR(MAX)
	
-- SELECT DATA HERE
	PRINT @VAR1
	set @vWhere = &#039;where Txn_Ref_Number = &#039; + &#039;&#039;&#039;&#039; + @VAR1 + &#039;&#039;&#039;&#039;
	
	set @sQuery = &#039;SELECT Txn_Ref_Number as &#039;&#039;Transaction Reference Number&#039;&#039;,Emi_Ref_Number as &#039;&#039;EMI No.&#039;&#039;, Due_Date as &#039;&#039;Date&#039;&#039;, Principle_Amt as &#039;&#039;Principle Amount&#039;&#039;,
					Int_Amt as &#039;&#039;Interest Amount&#039;&#039;,Status as &#039;&#039;Status&#039;&#039;
					from dbo.T_EMI_SCHEDULE &#039; + @vWhere
	EXEC(@sQuery)
	PRINT @sQuery
	FETCH NEXT FROM cGETDATA INTO @VAR1
	
END

CLOSE cGETDATA
DEALLOCATE cGETDATA
End

-------------------------------------------------

i want that &quot;cGetData&quot; which is of type cursor output in my java code... i have used registerOutParameter() method to reterive that but &quot;unsupportedoperationexception&quot; is thrown..

plz help..

and thanks in advance..]]></description>
		<content:encoded><![CDATA[<p>hii&#8230; can anyone plz tell me how to retrive the value of cursor output type variable in java.. i have a following Stored Procedure&#8230;</p>
<p>Create PROCEDURE [dbo].[USP_VIEW_PAYMENT]<br />
(<br />
	@pPartyId int,<br />
	@pAccNum varchar(20),<br />
	@cGETDATA cursor varying output<br />
)<br />
AS<br />
Begin<br />
/*	select es.*, tm.Description<br />
	from T_TRANSACTION_REQUEST tr, T_EMI_SCHEDULE es, M_TXNSTATUS_MASTER tm<br />
	where tr.Txn_Ref_Number=es.Txn_Ref_Number<br />
	and es.Status=tm.Status_ID<br />
	and tr.Party_ID=@pPartyId<br />
	and tr.Account_No=@pAccNum<br />
	Order by es.Txn_Ref_Number, es.Emi_Ref_Number </p>
<p>End*/</p>
<p>declare @vWhere as varchar(500)<br />
DECLARE @VAR1	VARCHAR(50)<br />
DECLARE cGETDATA CURSOR FOR</p>
<p> 	select Txn_Ref_Number from T_TRANSACTION_REQUEST where Party_ID=@pPartyId and Account_No=@pAccNum</p>
<p>OPEN cGETDATA</p>
<p>FETCH NEXT FROM cGETDATA INTO @VAR1</p>
<p>WHILE @@FETCH_STATUS = 0<br />
BEGIN<br />
	SET NOCOUNT ON;<br />
	declare @sQuery VARCHAR(MAX)</p>
<p>&#8211; SELECT DATA HERE<br />
	PRINT @VAR1<br />
	set @vWhere = &#8216;where Txn_Ref_Number = &#8216; + &#8221;&#8221; + @VAR1 + &#8221;&#8221;</p>
<p>	set @sQuery = &#8216;SELECT Txn_Ref_Number as &#8221;Transaction Reference Number&#8221;,Emi_Ref_Number as &#8221;EMI No.&#8221;, Due_Date as &#8221;Date&#8221;, Principle_Amt as &#8221;Principle Amount&#8221;,<br />
					Int_Amt as &#8221;Interest Amount&#8221;,Status as &#8221;Status&#8221;<br />
					from dbo.T_EMI_SCHEDULE &#8216; + @vWhere<br />
	EXEC(@sQuery)<br />
	PRINT @sQuery<br />
	FETCH NEXT FROM cGETDATA INTO @VAR1</p>
<p>END</p>
<p>CLOSE cGETDATA<br />
DEALLOCATE cGETDATA<br />
End</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>i want that &#8220;cGetData&#8221; which is of type cursor output in my java code&#8230; i have used registerOutParameter() method to reterive that but &#8220;unsupportedoperationexception&#8221; is thrown..</p>
<p>plz help..</p>
<p>and thanks in advance..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nikku</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-123505</link>
		<dc:creator><![CDATA[nikku]]></dc:creator>
		<pubDate>Wed, 16 Mar 2011 10:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-123505</guid>
		<description><![CDATA[hi, 
thanks for your simple example.this helps the beginners to get the knowledge .]]></description>
		<content:encoded><![CDATA[<p>hi,<br />
thanks for your simple example.this helps the beginners to get the knowledge .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-117023</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 07 Feb 2011 10:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-117023</guid>
		<description><![CDATA[You need to do this everytime a row is added to the table
declare @n int
set @n=(select right(col,4)*1 from table)
set @n=coalesce(@n,0)
select &#039;R&#039;+convert(char(8),getdate(),112)+right(&#039;0000&#039;+cast(@n+1 as varchar(4)),4)]]></description>
		<content:encoded><![CDATA[<p>You need to do this everytime a row is added to the table<br />
declare @n int<br />
set @n=(select right(col,4)*1 from table)<br />
set @n=coalesce(@n,0)<br />
select &#8216;R&#8217;+convert(char(8),getdate(),112)+right(&#8217;0000&#8242;+cast(@n+1 as varchar(4)),4)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prabhanjan</title>
		<link>http://blog.sqlauthority.com/2007/01/01/sql-server-simple-example-of-cursor/#comment-116167</link>
		<dc:creator><![CDATA[Prabhanjan]]></dc:creator>
		<pubDate>Sat, 05 Feb 2011 11:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/01/01/simple-example-of-cursor/#comment-116167</guid>
		<description><![CDATA[Hi i want to genrate RegID Like That
R201012310001
R201012310002
........................
R2010123100010
(R +Year + MM+DD + 00001)
and again in next year last 4 digit will be start from 00001.
How Can i do this in sql server 2008]]></description>
		<content:encoded><![CDATA[<p>Hi i want to genrate RegID Like That<br />
R201012310001<br />
R201012310002<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<br />
R2010123100010<br />
(R +Year + MM+DD + 00001)<br />
and again in next year last 4 digit will be start from 00001.<br />
How Can i do this in sql server 2008</p>
]]></content:encoded>
	</item>
</channel>
</rss>

