Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a Cursor, Why?
Message
 
 
To
30/08/2010 12:58:35
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01479241
Message ID:
01479245
Views:
75
>Hi,
>
>I am wondering about cursors. Why would one use a cursor in SQL Server?
>Thanks
>Tim

Suppose, you need to calculate running total and you don't want to use quirky update idea. Then cursor will perform better than set based solutions.

There are few other situations where cursor performs better.

In addition, what if you need to send an e-mail? If so, you will have to use a cursor.
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