SELECT * FROM
[Master].[dbo].[SYSPROCESSES] WHERE [DBID]
IN
( SELECT [DBID] FROM [Master].[dbo].[SYSDATABASES]
WHERE NAME='FT'
)
SELECT COUNT(*) AS CONNECTIONS FROM master..sysprocesses
如何查看SQL2005连接数量
最新推荐文章于 2018-09-20 11:42:05 发布
SELECT * FROM
[Master].[dbo].[SYSPROCESSES] WHERE [DBID]
IN
( SELECT [DBID] FROM [Master].[dbo].[SYSDATABASES]
WHERE NAME='FT'
)
SELECT COUNT(*) AS CONNECTIONS FROM master..sysprocesses