Home Forums SQL Server 2005 SQL Server 2005 Performance Tuning blocking RE: blocking
Dave Mason
SSCrazy
Points: 2741
More actions
March 16, 2009 at 12:11 pm
#960503
To get the info in a query, try using this dynamic mgmt view: sys.dm_exec_requests.
For instance, to get all the spid's that are currently blocked:
SELECT *
FROM sys.dm_exec_requests
WHERE wait_time > 0
AND blocking_session_id != 0