Quantcast
Viewing all articles
Browse latest Browse all 21093

Re: Extracting Data from Orion database

Hello,

 

Select * from xx is currently not supported. The list of properties (columns) from specific entity you can get by generating it directly from SWQL studio, which is part of the SDK package, or if you need to build the query dynamicaly, you can use construction like:

example for Orion.Nodes entity:

 

[System.String]$Entity = 'Orion.Nodes'

[System.String]$Properties = ((((Get-SwisData $SWIS_Connection ("Select Name from Metadata.Property WHERE EntityName='" + $Entity + "' AND IsNavigable = 'false'")) | Out-String) -Replace("`n", ","))).Trimend(",")

##Then you can get your results like:

[System.String]$Query = ("Select " + $Properties + " from " + $Entity)

[System.Array]$Results = Get-SwisData $SWIS_Connection $Query


Viewing all articles
Browse latest Browse all 21093

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>