I have implemented SQlDependency to detect changes in database tables.
I have inserted multiple records (approximately 500 records) in a database table using a while loop. But SQL Dependency is not detecting every change. The Change event method (of SQL Dependency) should execute 500 times when I insert 500 records but is firing less. Issue might be due to data changes occurred in table very quickly. If I add delay in while loop, it is working fine.
I want a solution to detect all the changes of DB table when large data changes occurred in database in short time. I have used SQL Dependency to detect DB changes. Please also let me know if I can use alternate of SQL Dependency.