查询锁死的表名以及ID
select request_session_id id, OBJECT_NAME(resource_associated_entity_id) tableName
FROM sys.dm_tran_locks
where resource_type='OBJECT'
杀死锁死表进程
kill id---ID是锁死表ID的值
日积月累,滴水穿石.
标签:resource,OBJECT,sqlserver,ID,锁死,查询,id
来源: https://www.cnblogs.com/Angel-szl/p/10593631.html