Is there a scalable alternative to SQL Server Query Notifications for raising events in an application from SQL Server?

╄→гoц情女王★ 提交于 2019-12-10 16:14:14

问题


SQL Server Query Notifications is a great tool, but it doesn't seem built to scale very well. Every application that wants/needs notifications has to keep an open connection to the database for the duration of the time it wants notifications (typically the entire time the application is running).

I am open to creative solutions. Off the top of my head I just thought of putting a service on the server that would subscribe to SQL Server Query Notifications which could then notify the client applications. In this case you have only 1 database connection open (and why not just leave it open all the time), and then your client applications could just subscribe to the service for notification.

Ideas??


回答1:


You may want to look into building your own solution using SQL Server Service Broker and db_mail or external activators.



来源:https://stackoverflow.com/questions/5960126/is-there-a-scalable-alternative-to-sql-server-query-notifications-for-raising-ev

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!