sql server查看表是否死锁

1.查看哪个表死锁

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

2.结束死锁的进程

kill 52

来源

posted @ 2018-10-12 14:01  yomi丶  阅读(689)  评论(0编辑  收藏  举报