sp_who2 ACTIVE --从下图可知spid = 65进程被76阻塞 --或 SELECT TOP 100 * FROM sys.sysprocesses WHERE blocked <> 0
DBCC INPUTBUFFER(76) --查看阻塞进程对应的sql
sp_who2 76 --查看进程command
KILL 76
sp_who2 ACTIVE --从下图可知spid = 65进程被76阻塞 --或 SELECT TOP 100 * FROM sys.sysprocesses WHERE blocked <> 0
DBCC INPUTBUFFER(76) --查看阻塞进程对应的sql
sp_who2 76 --查看进程command
KILL 76