Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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: 2068 | Views in the last 30 days: 9
 
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

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

FORUM

Calculating semi-additive measure based on date

Calculating semi-additive measure based on date

 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones