您的位置:首页 > 博客中心 > 数据库 >

sql server查询在线用户

时间:2022-03-14 17:21

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

 

本类排行

今日推荐

热门手游