select spid, blocked, loginame, last_batch, status, cmd, hostname, program_name from sys.sysprocesses where spid in
( select blocked from sys.sysprocesses where blocked <> 0 ) or (blocked <>0)

存着,时不时都要用来查查

05-08 08:29