Viewing 8 posts - 1 through 8 (of 8 total)
Looks like there was a problem in the stored proc being called inside of the cursor, and as you suggested the whole thing being inside of the try catch was...
October 1, 2015 at 2:19 pm
re: moving the declare / deallocate outside of the try. That might help, thanks. In the mean time I ditched the cursor for another method and it seems to be...
October 1, 2015 at 2:12 pm
The dataset will never be large. And "slow" is all relative. I know cursors get a bad rap but defending them is not really why I posted...
October 1, 2015 at 2:11 pm
tweaked the catch block to return the error message (duh), but now i'm even more confused:
ERROR_MESSAGE = A cursor with the name 'SetFirstLast' already exists.
There is no other looping going...
October 1, 2015 at 1:52 pm
Sure, I could use something else other than a cursor. maybe that'd fix the issue. But... in this case the dataset i am looping through is small so a cursor...
October 1, 2015 at 1:34 pm
Clearly if the only thing that has changed is the size of the column--even if it's a variable length column--that is causing the problem.
Use this query to check the size...
September 17, 2015 at 9:53 am
So my coworker figured it out... When you "pause" a job the SQL Agent Job is deleted... It gets recreated when you un-pause the job. Mystery solved!
September 16, 2015 at 7:14 pm
When the column is bigger, the index is bigger. Bigger indexes take more space on the disk and take longer to create.
September 16, 2015 at 4:45 pm
Viewing 8 posts - 1 through 8 (of 8 total)