sql server 数据库 杀掉死锁进程

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

    原文作者:acles
    原文地址: https://www.cnblogs.com/acles/archive/2012/12/18/2823048.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞