一.查看那个表死锁

select object_name(resource_associated_entity_id) as tableName, request_session_id as pid from sys.dm_tran_locks
where resource_type = 'OBJECT';

结果如下图:

sql server 查看是否有死锁

二.结束死锁的进程

KILL 83 

KILL 78

KILL 77

KILL 81

KILL 110

KILL 99

 

相关文章:

  • 2021-11-29
  • 2021-10-05
  • 2021-12-10
  • 2021-07-17
  • 2021-12-10
  • 2021-05-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案