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)

sp_what

By Andrew Stanton,

This is a replacement for SP_who and modification of sp_who2.

It will always list only active, nonsystem processes, and will list the number of seconds a transaction has been running for. Some transactions do not report a last batch time, so I forced a large value to display so you can see any issue with that transaction. Its sorted by spid, so you can se more easily whats blocking, and the columns are arranged to fit all info better on the screen (1280x1024).

Total article views: 1950 | Views in the last 30 days: 8
 
Related Articles
FORUM

Begin transaction ........... commit transaction

Begin transaction ........... commit transaction

FORUM

Open Transactions

Open Transactions

FORUM

Named Transactions

Named Transactions

FORUM

Transaction details

Transaction details

FORUM

uncommited transactions

uncommitted transactions

 
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