This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

SWQL : NCM ConnectionProfiles table

Hi, the SQL statement below works in SQL Management studio. The objective is to retrieve the connection profile Name and build rules around it based on its name.

SELECT A.[NodeID]

      ,A.[IP_Address]

      ,A.[Caption]

      ,A.[DNS]

  ,B.EQUIPE_OPS

  ,C.ConnectionProfile

  ,D.Name

  FROM ((([SolarWindsOrion].[dbo].[NodesData] as A

  INNER JOIN SolarWindsOrion.dbo.NodesCustomProperties as B on B.NodeID = A.NodeID)

  INNER JOIN SolarwindsOrion.dbo.NCM_NodeProperties as C on C.CoreNodeID = A.NodeID)

  INNER JOIN SolarwindsOrion.dbo.NCM_ConnectionProfiles as D on D.ID = C.ConnectionProfile)

When I use the SQWL query api with the given statement as $query , (see code below) , I receive the error "Message" : "Source entity [NCM.ConnectionProfiles] not found in catalog",

my $query = sprintf(

"SELECT A.[NodeID]

        ,A.[IP_Address]

        ,A.[Caption]

        ,A.[DNS]

        ,B.EQUIPE_OPS

        ,C.ConnectionProfile

        ,D.Name

  FROM Orion.Nodes A

  INNER JOIN Orion.NodesCustomProperties B on B.NodeID = A.NodeID

  INNER JOIN NCM.NodeProperties C on C.CoreNodeID = A.NodeID

  INNER JOIN NCM.ConnectionProfiles D on D.ID = C.ConnectionProfile

");

What am I missing ?