如何监听 SQL Server 数据库更改
使用.Net 4.0 和 SQL Server 2008 R2,
我一直在研究利用 SqlDependency / SqlNotifications 来监视某些数据库结构。将 SqlDependency / SqlNotifications 与 SQL Server Service Broker 结合使用是最佳流程/实践吗?
人们是否使用其他方法来完成类似的任务?我总是可以轮询更改,但我宁愿不必这样做。另一方面,我也不想在我们现有的环境中引入复杂的场景。
编辑(潜在选项):
- SqlDependency
- Service Broker 外部激活
Using .Net 4.0 and SQL Server 2008 R2
I have been looking into utilizing SqlDependency / SqlNotifications for monitoring some database structures. Is the best process / practice for this to utilize the SqlDependency / SqlNotifications with SQL Server Service broker?
Are folks using other methods to accomplish a similar task? I could always poll for changes, but I would rather not have to do that. On the other hand I don't want to introduce a complex scenario into our existing environment either.
EDIT (Potential Options):
- SqlDependency
- Service Broker External Activation
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看事件通知:
http://msdn.microsoft.com/en-us/库/ms175854.aspx
Check out event notifications:
http://msdn.microsoft.com/en-us/library/ms175854.aspx