Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. SELECT cd.Name AS ComponentName
  2. ,cd.[Key] AS ComponentSetting_Name
  3. ,REPLACE(REPLACE(REPLACE(cd.[Value], CHAR(10), ' '), CHAR(13), ' '), CHAR(9), ' ') AS ComponentSetting_Value
  4. ,a.Name AS ApplicationTemplate
  5. ,n.Caption AS ServerName
  6. ,s1.ComponentDisabled
  7. FROM APM_ComponentDetails cd
  8. LEFT OUTER JOIN APM_Applications a ON cd.ApplicationID = a.ID
  9. LEFT OUTER JOIN Nodes n ON a.NodeID = n.NodeID
  10. JOIN (SELECT cd2.ID
  11. ,cd2.[Key]
  12. ,cd2.[Value] AS ComponentDisabled
  13. FROM APM_ComponentDetails cd2
  14. WHERE cd2.[Key] = '__Disabled'
  15. ) s1 ON cd.ID = s1.ID
  16. WHERE cd.[Key] IN ('SqlQuery','InitialCatalog','SqlServerInstance','Counter','Instance','Category','Url','EntrySource', 'LogName', 'EntryID')
  17. AND n.AppAdmin = 'Recruiter'
  18. AND n.CloudPartner = 'Amazon Web Services'
  19. AND s1.ComponentDisabled <> 'True'
  20. GROUP BY n.Caption, a.Name, cd.Name, cd.[Key], cd.[Value], s1.ComponentDisabled
  21. ORDER BY n.Caption, a.Name, cd.Name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement