检查数据库锁
SELECT request_session_id spid,OBJECT_NAME(resource_associated_entity_id)tableName
FROM sys.dm_tran_locks
WHERE resource_type='OBJECT'
解除锁
kill [ID]
2022-04-29 03:17:56
检查数据库锁
SELECT request_session_id spid,OBJECT_NAME(resource_associated_entity_id)tableName
FROM sys.dm_tran_locks
WHERE resource_type='OBJECT'
解除锁
kill [ID]
下一篇:SqlServer查看锁表与解锁