行数就是连接数,每一行是连接详情
SELECT * FROM
[Master].[dbo].[SYSPROCESSES] WHERE [DBID] IN ( SELECT [DBID] FROM [Master].[dbo].[SYSDATABASES] WHERE NAME='Your Db Name' )
行数就是连接数,每一行是连接详情
SELECT * FROM
[Master].[dbo].[SYSPROCESSES] WHERE [DBID] IN ( SELECT [DBID] FROM [Master].[dbo].[SYSDATABASES] WHERE NAME='Your Db Name' )
转载于:https://www.cnblogs.com/Lulus/p/8056452.html