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

spid   就是锁住表的进程 
tableName   就是被锁的表名

相关文章:

  • 2021-12-06
  • 2021-10-21
  • 2021-12-26
  • 2021-11-13
  • 2021-06-24
  • 2021-10-06
  • 2021-10-02
  • 2021-08-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-09
  • 2021-12-18
  • 2021-12-03
  • 2021-09-07
  • 2021-12-16
相关资源
相似解决方案