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

相关文章
相关标签/搜索