SQL SERVER 查找阻塞源

1、T-SQL

select *
from master..sysprocesses
where blocked = 0 
    and spid in
    (
        select blocked
        from master..sysprocesses
        where blocked <> 0
    )

2、图形界面

“头阻塞程序”为“1”的即为阻塞源

 

posted @ 2022-04-22 14:09  竹楼风雨声  阅读(78)  评论(0编辑  收藏  举报