I am trying to figure out a way of querying my data base server running MS SQL Server. I need to check a table to see if it is empty or not. Then setup a trigger based off of time table has something in it. Example: tableA has data that needs to synch. Once it is synced the table is emptied. However is the sync fails the data will remain in the table. Is it possible to setup a sql query and a trigger that will do this.
Check the table and if table has data for a period of 5 minutes for say send an alert.
Thanks
Check the table and if table has data for a period of 5 minutes for say send an alert.
Thanks
Comment