Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 cursor order by

Author  Topic 

laailalalaa
Yak Posting Veteran

57 Posts

Posted - 2010-04-27 : 04:47:02
hello,

i'm not 100% sure about this and want to check with you guys here.
i populate a cursor with data, using a SELECT.. FROM.. ORDER BY id ASC. if i use FETCH NEXT, this is guaranteed to produce the rows for processing from smallest id to greatest id in the CURSOR, right?

thanks

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-04-27 : 04:49:23
right!


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

laailalalaa
Yak Posting Veteran

57 Posts

Posted - 2010-04-27 : 10:43:11
all right, thanks webfred
Go to Top of Page
   

- Advertisement -