sql server 查看是否有死鎖

一.查看那個表死鎖 select object_name(resource_associated_entity_id) as tableName, request_session_id as pid from sys.dm_tran_locks where resource_type = 'OBJECT'; 結果如下圖: 二.結束死鎖的進程 KILL 83  KILL 78 KILL 77 KIL
相關文章
相關標籤/搜索