Browse FAQs

A query to show the most recent timestamp for each device

Published date: 25 September 2019

Issue
A SQL statement to show the most recent timestamp, data was logged, for any source in the system.

Product Line
Power Monitoring Expert (8.0 and higher)

Environment
SQL Server Management Studio (SSMS)

Cause
Some devices may have stopped logging. A query is necessary to quickly show the most recent time, data was logged.

Resolution
*Warning: Irreparable database damage can occur. This procedure should only be performed by users familiar with SQL Server Management Studio. Databases should be backed up prior to performing this procedure.* 

Using SQL Server Management Studio, log in and run the attached SQL script (MostRecentDeviceTS.sql)

Below is an example SQL syntax of the result:


 

Was this helpful?

What can we do to improve the information ?

Can't find what you are looking for?

Reach out to our customer care team to receive information on technical support, assistance for complaints and more.