select count(*) from master.dbo.sysprocesses where dbid=db_id('数据库名称')
select
count(*)
from master..sysprocesses
where hostname<>'' and dbid=db_id('数据库名称')
Sql Server当前的并发连接数
最新推荐文章于 2024-08-15 19:03:08 发布
select count(*) from master.dbo.sysprocesses where dbid=db_id('数据库名称')
select
count(*)
from master..sysprocesses
where hostname<>'' and dbid=db_id('数据库名称')