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
Thursday, January 29, 2009
Viewing the SPID and code of query that cause block on SQL server
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment