Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a Cursor, Why?
Message
 
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01479241
Message ID:
01479273
Views:
60
>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.

>
>That's debatable. I'm not saying cursors are the root of ALL evil, but that's debatable.
>
>In addition, what if you need to send an e-mail? If so, you will have to use a cursor.
>
>That's what SSIS is for. :)

What part of that statement is debatable?

Or what exactly did you mean here?

Check http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/running-sums-redux.aspx

Did you mean?
CLR solution wins
http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/running-sums-yet-again-sqlclr-saves-the-day.aspx
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform