Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sql Server 2000 - How can I find out what stored procedures are running currently?

Tags:

sql-server

I'd like to know what stored procedures are currently running to diagnose some performance problems. How can I find that out?

like image 785
Jon Avatar asked Sep 24 '08 18:09

Jon


2 Answers

Very useful script for analyzing locks and deadlocks: http://www.sommarskog.se/sqlutil/aba_lockinfo.html

It shows procedure or trigger and current statement.

like image 92
DiGi Avatar answered Oct 20 '22 01:10

DiGi


I think you can do execute sp_who2 to get the list of connections, but then you'll need to run a trace through SQL Profiler on the specific connection to see what it's executing. I don't think that works with queries that are already running though.

like image 21
Dave Neeley Avatar answered Oct 20 '22 01:10

Dave Neeley