SQL 死锁查询与解决办法

use mastergodeclare @spid int,@bl intDECLARE s_cur CURSOR FOR select 0 ,blockedfrom (select * from sysprocesses where blocked>0 ) a where not ...