SELECT * FROM [Master].[dbo].[SYSPROCESSES] WHERE [DBID]=(SELECT [DBID] FROM [Master].[dbo].[SYSDATABASES] WHERE [NAME]='数据库名')
转载于:https://www.cnblogs.com/TanSea/p/Connection-State.html
SELECT * FROM [Master].[dbo].[SYSPROCESSES] WHERE [DBID]=(SELECT [DBID] FROM [Master].[dbo].[SYSDATABASES] WHERE [NAME]='数据库名')
转载于:https://www.cnblogs.com/TanSea/p/Connection-State.html