Viewing 5 posts - 1 through 5 (of 5 total)
But I'm still curious how you'd rewrite the procedure without using an cursor 🙂
What we do:
Select ID, Adress, Zipcode
From aTable
Open Cursor
Fetch Next into variables
Do while eof
...
September 21, 2012 at 6:47 am
I've put the option ARITHABORT ON and now it's as fast as before again...
so issue solved!
Thanx,
/Jan
September 21, 2012 at 6:42 am
Hi, did you solve it, because I have the same issue.
I also use a cursor, but that has to stay in the procedure.
When running it from SSMS, it flies, but...
September 21, 2012 at 2:21 am
I've managed it by adding a field in the dataset with a row_number() over(order by ...) statement in it.
And then filter on this newly added field, <= 10.
Works fine...
/Jan
November 29, 2011 at 6:11 am
Topic can be closed!!!!
I started the wrong procedure !!!!!!:w00t:
Regards,
/Jan
September 6, 2011 at 1:18 am
Viewing 5 posts - 1 through 5 (of 5 total)