select count(*) from master.dbo.sysprocesses where dbid=db_id()
select
count(*)
from master..sysprocesses
where hostname<>'' and dbid=db_id('db')
查看Sql Server当前的并发连接数
最新推荐文章于 2025-02-12 20:10:59 发布
select count(*) from master.dbo.sysprocesses where dbid=db_id()
select
count(*)
from master..sysprocesses
where hostname<>'' and dbid=db_id('db')