事务锁表处理

来源:互联网 发布:物流软件大全 编辑:程序博客网 时间:2024/05/16 05:45
select    
    request_session_id,OBJECT_NAME(resource_associated_entity_id)  
from    
    sys.dm_tran_locks   
where    
    resource_type='OBJECT' 
    
    and OBJECT_NAME(resource_associated_entity_id) = TableName
    
    ORDER by
    
   kill  request_session_id
原创粉丝点击