sqlserver查看用户连接数

Select count(1) from sys.dm_exec_connections

select count(distinct(login_time)) from sys.sysprocesses

  

posted @ 2023-10-10 11:14  七星飘虫  阅读(127)  评论(0)    收藏  举报