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
答案 0 :(得分:1)
在SQL Server管理工作室中执行SQL查询,如下所示:
SELECT DB_NAME(dbid), COUNT(dbid) AS NoOfConnections, loginame
FROM sys.sysprocesses
WHERE dbid > 0
GROUP BY dbid, loginame