sqlserver查看和解除表死鎖

1,查看那個表死鎖session

select object_name(resource_associated_entity_id) as tableName, request_session_id as pid from sys.dm_tran_locks進程

where resource_type = 'OBJECT'ci

2,結束死鎖的進程it

kill 70io

相關文章
相關標籤/搜索