Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debugging a WHILE EXISTS
Message
 
 
To
02/11/2008 15:17:31
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01358902
Message ID:
01359026
Views:
30
>>You're welcome. Are you sure you need to loop and can not do this in one shot as Sergey showed? Using cursors in SQL Server is slow. Of course, if this is one time deal or small set of records, it doesn't matter.
>
>I need to have it in a loop as I will add more processes soon.

Ok. Because the current code as is seems to duplicate two update commands Sergey showed and don't have to be in the loop.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform