sql-server: how do i know who is in my database?

后端 未结 4 501
后悔当初
后悔当初 2021-01-05 23:04

i have an access front end and sql server backend. i would like to know which users are currently using the database. is this possible to do using access or sql-server?

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-05 23:44

    For SQL Server you can try

    SELECT * 
    FROM sys.dm_exec_sessions
    

    which will list all the open sessions

提交回复
热议问题