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