时间:2021-07-01 10:21:17 帮助过:111人阅读
use master
go
--检索死锁进程
select spid, blocked, loginame, last_batch, status, cmd, hostname, program_name
from sysprocesses
where spid in
( select blocked from sysprocesses where blocked <> 0 ) or (blocked <>0)
kill spid
sql server 数据库 杀掉死锁进程
标签:死锁 lock 检索 ast pid rom use login master