Link to home
Start Free TrialLog in
Avatar of arida
arida

asked on

The "@@Cursor_Rows" is getting me "-1"????

When I use the @@CURSOR_ROWS global variable in SQL Server, it is getting me -1 as an answer, although I know that the cursor returns more than 1 row.
I tried to change the setup configuration in sp_configure, but it did not work.

Is there a setup variable that I must know about so that it works properly?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of xenon_je
xenon_je

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ispaleny
Open your cursor as static. Now it can accumulate changes from other users, so it cannot return an accurate rowcount.
Avatar of CleanupPing
CleanupPing

arida:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
No comment has been added to this question in more than 268 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
   Accept: xenon_je http:#8193611

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

monosodiumg
EE Cleanup Volunteer