SQL SERVER 死锁处理办法
--查询是否有死锁的表及视图
select
request_session_id spid,
OBJECT_NAME(resource_associated_entity_id) tableName
from
sys.dm_tran_locks
where
resource_type='OBJECT'
--杀死spid
kill 69
--查询是否有死锁的表及视图
select
request_session_id spid,
OBJECT_NAME(resource_associated_entity_id) tableName
from
sys.dm_tran_locks
where
resource_type='OBJECT'
--杀死spid
kill 69