Article ID: 930048 - Last Review: November 20, 2007 - Revision: 1.3 A query notification dependency between an application and a SQL Server 2005 database does not detect the changes in the database after a database mirroring failover
SYMPTOMSYou use the SqlDependency class to create a query notification dependency between an application and a database in an instance of Microsoft SQL Server 2005. After a database mirroring failover, the dependency does not detect the changes in the database. Note This issue occurs when you configure the SQL Server 2005 database to use database mirroring. CAUSEThis issue occurs because the existing dependencies are invalidated when the database mirroring failover occurs. RESOLUTIONTo resolve this issue, add code to monitor database mirroring failovers. Then, re-execute the relevant commands that are used together with the dependencies. STATUS This behavior is by design. MORE INFORMATIONFor more information about how to monitor the database mirroring failover, download the SQL Server 2005 Samples and Sample Databases (December 2006). Then, reference the Mirroring Failover sample project. To do this, visit the following Microsoft Web site: http://www.microsoft.com/downloads/details.aspx?FamilyID=e719ecf7-9f46-4312-af89-6ad8702e4e6e&DisplayLang=en
(http://www.microsoft.com/downloads/details.aspx?FamilyID=e719ecf7-9f46-4312-af89-6ad8702e4e6e&DisplayLang=en)
APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|





















Back to the top