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)

Script to output dbcc inputbuffer adding spid info

By ezlikesundaymorning,

The following script will allow the user to get information from all spids that have a program name associated with them. That is event info out of dbcc inputbuffer. Additional columns may be added and used in the table through simple modifications of the script. I just found it useful for troubleshooting and setting up with a hotkey. This way I have quick access to finding out which process is running for given cpu cycles etc or program name. I have included the basic script. Additional functionality may be added to the script for additional benefit.

Total article views: 2127 | Views in the last 30 days: 4
 
Related Articles
FORUM

Additions

Additions to script: Run for all databases

FORUM

Showing additive and semi-additive measures in one row

Showing additive and semi-additive measures in one row

ARTICLE

Additional Data Files and Proportional Fill

Additional files can be added to to a database to increase the storage. When more data is added to ...

FORUM

What additional scripting languages useful?

I am new to SQL Server (and this forum) and was wondering what scripting languages would be useful t...

FORUM

How to Handle Non additive measures

How to Handle Non additive measures

 
Contribute