开发者

SQL Server database insert/update TCP notifications

开发者 https://www.devze.com 2023-03-28 04:25 出处:网络
Is there anyway to send some sort of m开发者_C百科essage from SQL Server to identify that a table has been updated or had a record inserted into it? Preferably TCP but anything will do.

Is there anyway to send some sort of m开发者_C百科essage from SQL Server to identify that a table has been updated or had a record inserted into it? Preferably TCP but anything will do.

I know there is SQL Notification Services but this is no longer supported in SQL 2008

Just wondering if its possible to build a real time app that pushes notifications of table changes.


Service Broker and Query Notifications.

  • Overview (Service Broker)

  • Working with Query Notifications

  • Query Notifications in SQL Server (ADO.NET)


You can try LinqToCache which allows to wrap a SqlDependency around any LINQ query, as long as the LINQ generated T-SQL is compatible with Query Notifications. It will work with .Net, not sure about node.js

0

精彩评论

暂无评论...
验证码 换一张
取 消