﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 General Discussion  / how do i supress cursor select set results / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 22:49:13 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: how do i supress cursor select set results</title><link>http://www.sqlservercentral.com/Forums/Topic654772-149-1.aspx</link><description>As told in other thread, you don't need doubled nested cursors.All it takes is one update statement and one insert statement.</description><pubDate>Wed, 11 Feb 2009 08:42:20 GMT</pubDate><dc:creator>SwePeso</dc:creator></item><item><title>RE: how do i supress cursor select set results</title><link>http://www.sqlservercentral.com/Forums/Topic654772-149-1.aspx</link><description>Thanks peso...  I am looking for different solutions...unfortunately i am not a T-SQL wiz and was hoping for something a little more straight forward;  e.g., is there an obscure option on the FETCH statement that i could use?</description><pubDate>Wed, 11 Feb 2009 07:56:06 GMT</pubDate><dc:creator>brd123</dc:creator></item><item><title>RE: how do i supress cursor select set results</title><link>http://www.sqlservercentral.com/Forums/Topic654772-149-1.aspx</link><description>Answered here in detail[url=http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=119624]http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=119624[/url]</description><pubDate>Wed, 11 Feb 2009 07:37:35 GMT</pubDate><dc:creator>SwePeso</dc:creator></item><item><title>how do i supress cursor select set results</title><link>http://www.sqlservercentral.com/Forums/Topic654772-149-1.aspx</link><description>Hi all. I have the following code: DECLARE prod_cursor CURSORFORSELECT productid &amp;lt;--Problem childFROM @products OPEN prod_cursorDECLARE @prodid_ FETCH NEXT FROM prod_cursor INTO @prodid_WHILE (@@FETCH_STATUS &amp;lt;&amp;gt; -1)BEGINIF(@@FETCH_STATUS &amp;lt;&amp;gt; -2)BEGIN(line by line processing)END FETCH NEXT FROM prod_cursor INTO @prodid_ ENDCLOSE prod_cursorDEALLOCATE prod_cursorSELECT * from @prodid_  Problem is that I am getting the cursor select's result first then the last select's result set. I only want the last result set. Is there a way i can supress the cursor result set? many thanksbirdie3321</description><pubDate>Wed, 11 Feb 2009 07:01:25 GMT</pubDate><dc:creator>brd123</dc:creator></item></channel></rss>