所有池连接均在使用,并且达到了最大池大小。

image

SELECT [dec].client_net_address,
       [des].[program_name],
       [des].[host_name],
       Count([dec].session_id) AS connection_count
FROM   sys.dm_exec_sessions AS [des]
       INNER JOIN sys.dm_exec_connections AS [dec]
               ON [des].session_id = [dec].session_id
GROUP  BY [dec].client_net_address,
          [des].[program_name],
          [des].[host_name]
ORDER  BY [des].[program_name],
          [dec].[client_net_address];
posted @ 2016-04-26 18:40  MyCoolDog  阅读(2751)  评论(0编辑  收藏  举报