How to check Application Pool status remotely through SQL server

时间:2017-06-12 17:10:44

标签: sql ssis plsqldeveloper

I am a SQL Database Admin and curious about is it possible to check Application pool site status remotely from DB server?

Is there any way (e.g. SSIS package or SQL script) that I can get the result in table or file?

Thanks in advance

1 个答案:

答案 0 :(得分:1)

在SQL Server管理工作室中执行SQL查询,如下所示:

 SELECT DB_NAME(dbid), COUNT(dbid) AS NoOfConnections, loginame 
 FROM sys.sysprocesses 
 WHERE dbid > 0 
 GROUP BY dbid, loginame