.net - SQL 集群的 SqlDependency?

标签 .net sql-server cluster-computing sqldependency

我有一个关于 SqlDependency 的简短问题。我在故障转移群集中配置了两个 SQL 2005 服务器。

当事件节点更改时,我停止接收通知...我必须手动重新启动承载 SqlDependency 的 Windows 服务...

这是正确的行为吗?如何自动重启依赖??

提前致谢!

附言。抱歉我的英语很烂!来自阿根廷的欢呼!!!

最佳答案

这是此处解释的预期行为 - http://support.microsoft.com/kb/930048 .

正如它所说:

To resolve this issue, add code to monitor database mirroring failovers. Then, re-execute the relevant commands that are used together with the dependencies.

您可能会找到帖子 "How to Detect Database Mirroring Failovers"有用。它显示了监视故障转移的不同方法。

关于.net - SQL 集群的 SqlDependency?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4794255/

相关文章:

c# - 为什么 .NET 创建新的子字符串而不是指向现有字符串?

c# - DataflowBlockOptions.BoundedCapacity 和 BufferBlock<T> 之间的区别

sql - Sequelize 非主键上的连接表

sql-server - SQL 服务器 : one table fulltext index vs multiple table fulltext index

c# - SQL Server 全文搜索 - 大型查询

android - 如何添加 2 个监听器映射?

linux - 如何并行地向linux提供大量样本?

c# - 我是否必须包含所有 System.Collections.Immutable 依赖项?

c# - 函数的变量存储在哪里?在堆栈或堆上?

python - 并行 python 还是 MPI?