All Tags »
Performance »
Surprise »
Cursor vs Set (RSS)
Sorry, but there are no more tags available to filter with.
-
The best way to optimize performance of a cursor is, of course, to rip it out and replace it with set-based logic. But there is still a small category of problems where a cursor will outperform a set-based solution. The introduction of ranking functions in SQL Server 2005 has taken a large chunk out of that category – but some remain. For those ...