Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

What's Running

By Eric Wahner,

spWhatsRunning does just that.  It tells you exactly what is executing on your server.  By combining the output of the sp_who and dbcc inputbuffer, this script will tell you exactly whats being executed.  DBCC INPUTBUFFER will tell you the same thing, but by the time you get the spid, the offending process may be gone.  With spWhatsRunning you get a snapshot of everything.

The 3 parameters are @cpu, @loginame, and @host.
exec master..spWhatsRunning 0, '' to see every process.  The parameters are used to filter out specific entries.

Total article views: 2529 | Views in the last 30 days: 10
 
Related Articles
FORUM

What's Running

Comments posted to this topic are about the item [B]What's Running[/B] Hi Eric, This ...

 
Contribute