数据库的锁表

SELECT request_session_id spid,OBJECT_NAME(resource_associated_entity_id)tableName
FROM sys.dm_tran_locks
WHERE resource_type='OBJECT '

posted @ 2013-04-09 17:13  南潇湘  阅读(165)  评论(0编辑  收藏  举报