一.查看那个表死锁
select object_name(resource_associated_entity_id) as tableName, request_session_id as pid from sys.dm_tran_locks
where resource_type = ‘OBJECT’;
结果如下图:
二.结束死锁的进程
KILL 83
KILL 78
KILL 77
KILL 81
KILL 110
KILL 99
————————————————
版权声明:本文为CSDN博主「青梅煮酒123」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_27786919/article/details/90603969