Some content on this site is available only to logged-in subscribers. Contact Us for information on becoming a subscriber.

InSource.Solutions | InSource Training | InSource Client Portal
InSource Solutions Logo
Log In Sign Up
InSource.Solutions InSource Training InSource Client Portal Log In Sign Up
  • Home
  • AVEVA Historian
  • AVEVA Historian Tech Notes

TN 1246 How to query Alarm Shelves out of the Runtime Database

Last updated: March 5th, 2025

Description

  • Author: Michael Viteri
  • Published: March 5th, 2025

Details:

Description

  • Author: Mike Viteri
  • Published: 6/6/2022
  • Applies to: 2017 and later

Details

Sometimes Alarm Shelve information is needed in a format that can be reported on instead of being pulled from the alarm display.

Alarm Shelve History is kept in the Runtime database if using History Blocks as the storage system.

The query below looks at type of alarm column. The two types of Alarm Shelve are

  • Alarm.Shelve.Set
  • Alarm.Shelve.Clear

There are many other columns that can be added or removed from the query. You can look at Runtime.dbo.Events for column information.

Example Query:

Select [EventTime]
,[EventTimeUtc]
,[EventTimeUTCOffsetMins]
,[Type]
,[Priority]
,[Severity]
,[IsAlarm]
,[Source_ProcessVariable]
,[Comment]
,[InTouchType]
,[Provider_ApplicationName]
,[Provider_NodeName]
,[Provider_System]
,[Provider_SystemVersion]
,[ReceivedTime]
,[Source_Area]
,[Source_HierarchicalArea]
,[Source_HierarchicalObject]
,[Source_Object]
,[Source_Platform]
,[User_Account]
,[User_Name]
,[User_NodeName]
,[ValueString]
,[PreviousValueString]
,[wwTimeZone]
FROM [Runtime].[dbo].[Events]
Where Type = 'Alarm.Shelve.Set' or Type = 'Alarm.Shelve.Clear'
and EventTime>= '2022-06-01 11:00:00:000'
and EventTime <= '2022-06-02 11:00:00:000'

 

alarm shelves database query
Give feedback about this article

Recommended articles

TN 1321 Unable to activate license with message "Unable to communicate with the Activation Server." For only one license serial number.

Read More

TN 1439 Successfully exporting data to CSV using the hist data wizard

Read More
Support Icon

CONTACT SUPPORT

How to reach us

10800 Midlothian Turnpike Tpke, Suite 209, Richmond, VA 23235

1.877.INSOURCE

Technical Support - 1.888.691.3858

Contact Us

  • InSource Solutions
  • InSource Training
  • InSource Client Portal
  • Log In
InSource Solutions Logo

© 2025 InSource Solutions. All Rights Reserved.

Knowledge Base Software powered by Helpjuice

Expand