简体   繁体   中英

How to listen database changes and retrieve them always

I have an application that needs to act whenever there is an insertion by other clients on the sql server database.How can I notify the change and retrieve them ? Any help is appreciated.

This question already discusses about how can you be notified about SQL changes using SqlDependency class. However, it is not just unicorns and rainbows, so you should also read these resource before pursuing this path:

1) Consider polling - check this question

2) Read the limitations - check here to see that there are lots of limitations

3) Caching using SqlCacheDependency , if you are using ASP.NET

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM