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)
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 107
相关文章
- 02-03SqlServer 查询死锁,杀死死锁进程
- 02-03sql- 查询杀死阻塞进程
- 02-03Windows下查询指定端口进程,并杀死