Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to view current cursor activity

Status
Not open for further replies.

k108

Programmer
Jul 20, 2005
230
US
Is there a way to view current cursor activity on a database?

I could have sworn there was sp_helpcursor, but there isn't.

Thanks!
 
sp_cursor_list expects cursor variable to pass results back (OUTPUT argument). This sometimes kind of sucks, so for quick checks you can dig into master db and use:
Code:
SELECT CR.reference_name, CR.cursor_scope, C.*
from master..syscursorrefs CR 
inner join master..syscursors C on CR.cursor_handl=C.cursor_handle

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top