Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Get alert when specific rows in a table in a SQL database does not update

$
0
0

Hello all. Looking to set up email alert when a specific SQL table that contains certain equip status connections (up to 99) does not update within 5mins. The table has hundreds of rows that update every couple of mins. The table contains 2 columns.. an EQUIPSTATUS columm an DATE column. For example the table shows:

004 has not updated since 01:40 so this needs to be sent in the alert.

EQUIPSTATUS  DATE

001    2/9/16 02:00
002    2/9/16 02:02
003    2/9/16 02:03
001    2/9/16 01:59
002    2/9/16 01:55
004    2/9/16 01:40

Is a stored procedure the way to go? Anyone help writing this?




Viewing all articles
Browse latest Browse all 4871

Trending Articles



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