SQL Dependency will not work for you if you want data not to be skipped. SQL Dependency only works within the registration area of ββyour application to receive notifications. This means that if your application is disconnected for any reason, you have missed some notifications.
You will need to look at something closer to the very level of the database to make sure that you receive all notifications (data changes).
You probably have triggers that update the staging table. Be careful when using triggers. A failure or slow response in your triggers can affect the performance of the original database and operations.
You can enable replication and work with replica data in your application and mark all the records that you have already processed.
source share