解决sql server死锁

 

-- 查询死锁
select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName 
from sys.dm_tran_locks 
where resource_type='OBJECT'

-- 杀死死锁
kill 147

 

posted @ 2018-11-15 11:40  小确幸123  阅读(336)  评论(0编辑  收藏  举报