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

PI OLEDB Enterprise

Retrieve Event Frames and attribute values

  • Last UpdatedSep 29, 2022
  • 1 minute read

SELECT ef.Name AS EventFrame, ef.StartTime, ef.EndTime,
efa.Name AS EventFrameAttribute,
efa.Path AS EventFrameAttributePath,
efa.Level AS EventFrameAttributeLevel,
efa.IsConfigurationItem,
cast(efs.Value as String) as AttrValue
FROM EventFrame.EventFrame ef
INNER JOIN EventFrame.EventFrameAttribute efa
ON efa.EventFrameID = ef.ID
INNER JOIN Data.EventFrameSnapshot efs
ON efs.EventFrameAttributeID = efa.ID
WHERE ef.StartTime > N'01-Jul-2012'
AND ef.EndTime < N'02-Jul-2012'
AND efa.EventFrameTemplateAttributeID IS NULL
ORDER BY ef.Name, ef.StartTime, ef.EndTime, efa.Path, efa.Name;

Find Event Frames in a certain time range and show individual attributes and their snapshot values.

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