SELECT * FROM
[Master].[dbo].[SYSPROCESSES] WHERE [DBID]IN( SELECT [DBID] FROM [Master].[dbo].[SYSDATABASES] WHERE NAME='SWT_MicroManage')goSELECT COUNT(*) AS CONNECTIONS FROM master..sysprocessesgoSP_WHO 'swt'go本文共 220 字,大约阅读时间需要 1 分钟。
SELECT * FROM
[Master].[dbo].[SYSPROCESSES] WHERE [DBID]IN( SELECT [DBID] FROM [Master].[dbo].[SYSDATABASES] WHERE NAME='SWT_MicroManage')goSELECT COUNT(*) AS CONNECTIONS FROM master..sysprocessesgoSP_WHO 'swt'go转载地址:http://jlivo.baihongyu.com/