說道死鎖問題的解決
具體的解決方法如下
use master
go
declare @spid int
DECLARE s_cur CURSOR FOR
select
from (select * from sysprocesses where blocked>
where not exists(select * from (select * from sysprocesses where blocked>
where a
union select spid
OPEN s_cur
FETCH NEXT FROM s_cur INTO @spid
WHILE @@FETCH_STATUS =
begin
if @spid =
select
else
select
DBCC INPUTBUFFER (@bl )
FETCH NEXT FROM s_cur INTO @spid
end
CLOSE s_cur
DEALLOCATE s_cur
exec sp_who
EG
/*
[
From:http://tw.wingwit.com/Article/program/SQL/201311/16323.html