Notify my WCF service when my database is updated

前端 未结 2 1221
遇见更好的自我
遇见更好的自我 2020-12-19 08:33

I have a WCF service that needs to notify it\'s clients when changes occur to the database (sql server 2005). This is relatively easy accomplished, as long as I find a way t

相关标签:
2条回答
  • 2020-12-19 08:54

    If your database is SQL Server 2005 and above you can try this solution: Remove pooling for data changes from a WCF front end.

    As a side note, never call external processes from a trigger, don't make web calls from a trigger. Is a guaranteed recipe for disaster.

    Update

    For those interested in mixing Query Notifications with LINQ to SQL I recommend Using SQLDependency objects with LINQ.

    0 讨论(0)
  • 2020-12-19 09:08

    Look at

    • SQL Server 2005 Query Notifications Tell .NET 2.0 Apps When Critical Data Changes
    • Change Notification with Sql Server 2008
    0 讨论(0)
提交回复
热议问题