Answer by Josh Darnell for Cursor Replacement for Newbies
Doug Lane did a series of videos called "T-SQL Level Up" that are on YouTube. Part of the series explores a general approach to removing cursors that goes something like this:Remove all the cursor...
View ArticleAnswer by Randi Vertongen for Cursor Replacement for Newbies
It depends™The ability to work around one or multiple cursors, will depend on what is going to be executed inside of this cursor. Without knowing what is going on in it, there is no way to tell. It...
View ArticleAnswer by Aaron Bertrand for Cursor Replacement for Newbies
There is no "general replacement" - you hid all the "dirty work" here so it's hard to tell if there is even a specific replacement in this case. There are certainly some specific cases where you're...
View ArticleCursor Replacement for Newbies
I'd like to know what the general replacement is for a cursor. The general implementation of a cursor I see out and about isDECLARE @variable INT, @sqlstr NVARCHAR(MAX)DECLARE cursor_name CURSORFOR...
View Article
More Pages to Explore .....