white knight

导航

 

参考 https://www.cnblogs.com/fuyuanming/p/5783421.html

 

-- 查询死锁
select    
    request_session_id spid,   
    OBJECT_NAME(resource_associated_entity_id) tableName    
from    
    sys.dm_tran_locks   
where    
    resource_type='OBJECT' 
复制代码
 --杀死死锁进程
kill 354 
posted on 2018-08-23 09:11  white knight  阅读(108)  评论(0编辑  收藏  举报