查看数据库被锁进程

select   request_session_id   spid,OBJECT_NAME(resource_associated_entity_id)table_news   from   sys.dm_tran_locks


  where     resource_type   =   'OBJECT '

posted on 2008-03-27 09:41  老枪  阅读(236)  评论(0编辑  收藏  举报

导航