获取被锁的对象

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

 

解锁

KILL SPID

  

相关文章:

  • 2021-12-27
  • 2021-12-06
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2021-06-09
  • 2021-03-31
  • 2021-11-08
猜你喜欢
  • 2022-12-23
  • 2022-02-21
  • 2022-01-04
  • 2022-12-23
  • 2021-08-24
  • 2022-01-25
相关资源
相似解决方案