查询锁死的表名以及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的值
日积月累,滴水穿石.
查询锁死的表名以及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的值
日积月累,滴水穿石.