Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI SQL Client OLEDB

Heterogenous queries

  • Last UpdatedJan 04, 2023
  • 1 minute read

You can use heterogenous queries to join the data from SQL Server to the data in the linked server.

Example of a heterogenous query

The following query returns the name and path of the corresponding elements from whose name is stored in a local SQL table, dbo.AttributeList.

SELECT afelement.Name, afelement.path
FROM dbo.AttributeList INNER REMOTE JOIN
LINKED_SERVER.Master.Element.ElementHierarchy AS afelement
ON afelement.Name = dbo.AttributeList.AF_ElementName

TitleResults for “How to create a CRG?”Also Available in