Submit a ticketCall us

Training Class Getting Started with SolarWinds Backup - February 28

This course offers customers an introduction to SolarWinds Backup, focusing on configuring the backup technology, taking backups, data restoration and data security. It is a great primer and will get you up to speed quickly on SolarWinds Backup.
Register for class.

Home > Success Center > Server & Application Monitor (SAM) > Use SQL to show components and credentials applied to them

Use SQL to show components and credentials applied to them

Table of contents
Created by Riggs Clough, last modified by MindTouch on Jun 23, 2016

Views: 835 Votes: 3 Revisions: 4


This article describes how to show components and applications and credentials that are applied to them.


All SAM versions


  1. Navigate to the Orion Server.
  2. Open Database Manager.
  3. Open the Default Server.
  4. Right click  the SolarWindsOrion database.
    Note: This may be called NetPerfMon depending on when you originally installed the software.
  5. Select New Query.
  6. Run the following query:
    SELECT n.NodeID, n.Caption as Node, a.ID as ApplicationID, a.Name as [Application], c.ID as ComponentId, c.Name as Component,

    cts.Value as TemplateCredId, cs.[Value] as OverridenCredId, cred.Name as CredName
FROM APM_Component c
    INNER JOIN APM_Application a ON c.ApplicationID = a.ID
    INNER JOIN Nodes n ON a.NodeID = n.NodeID
    LEFT JOIN APM_ComponentSetting cs ON cs.ComponentID = c.ID AND cs.[Key] = '__CredentialSetId'
    LEFT JOIN APM_ComponentTemplate ct ON ct.ID = c.TemplateID
    LEFT JOIN APM_ComponentTemplateSetting cts ON cts.ComponentTemplateID = ct.ID AND cts.[Key] = '__CredentialSetId'
    LEFT JOIN [Credential] cred ON cred.ID = ISNULL(cs.Value, cts.Value)


This returns Node ID/Name, ApplicationID/Name, ComponentID/Name, and the credentials that are applied to it. A TemplateCredID of -3 means it is inherited from the template.



Last modified