-----查询死锁ID
select
request_session_id spid,
OBJECT_NAME(resource_associated_entity_id) tableName
from
sys.dm_tran_locks
where
resource_type=‘OBJECT‘
---杀死死锁
kill id
原文地址:https://blog.51cto.com/4085457/2390434
时间: 2024-10-09 10:45:42