Thursday, January 29, 2009

Viewing the SPID and code of query that cause block on SQL server

Viewing the SPID and code of query that cause block on SQL server

SPID :

select distinct blocked from sysprocesses where blocked > 0

Code :

dbcc inputbuffer(Spid)

or

select * from sysprocesses where spid=spid_number

No comments:

Post a Comment

 
span.fullpost {display:inline;}