You may notice one or more of the following symptoms with a database that is configured for query notification subscriptions:
Symptom 1: Restoring the database from its backup may fail with 1205 error message if NEW_BROKER option is specified during the restore operation. Additionally dump files will be generated in the SQL Server’s Errorlog folder.
Symptom 2: Restoring the database from its backup fails and the database goes offline. Additionally the following messages are logged in the SQL Server Errorlog:
Symptom 3: Restoring the database from its backup may take a long time and messages similar to the following are logged in SQL Server Errorlog:
Symptom 1: Restoring the database from its backup may fail with 1205 error message if NEW_BROKER option is specified during the restore operation. Additionally dump files will be generated in the SQL Server’s Errorlog folder.
Symptom 2: Restoring the database from its backup fails and the database goes offline. Additionally the following messages are logged in the SQL Server Errorlog:
2010-08-13 04:15:32.09 spid61 Error: 9768, Severity: 16, State: 1.
2010-08-13 04:15:32.09 spid61 A database user associated with the secure conversation was dropped before credentials had been exchanged with the far endpoint. Avoid using DROP USER while conversations are being created.
2010-08-13 04:15:32.09 spid61 Failed to check for pending query notifications in database "5" because of the following error when opening the database: 'A database user associated with the secure conversation was dropped before credentials had been exchanged with the far endpoint. Avoid using DROP USER while conversations are being created. The query notification subscriptions cleanup operation failed. See previous errors for details.'.
2010-08-13 04:15:32.10 spid61 Error: 9001, Severity: 16, State: 5.
2010-08-13 04:15:32.10 spid61 The log for database 'Test' is not available. Check the event log for related error messages. Resolve any errors and restart the database.
2010-08-13 04:15:32.10 spid61 Error: 3314, Severity: 21, State: 4.
2010-08-13 04:15:32.10 spid61 During undoing of a logged operation in database 'Test', an error occurred at log record ID (1835:7401:137). Typically, the specific failure is logged previously as an error in the Windows Event Log service. Restore the database or file from a backup, or repair the database.
Note: You may encounter the issue during recovery phase of the database. Recovery is also run on a database when database is brought online, server is restarted, etc.2010-08-13 04:15:32.09 spid61 A database user associated with the secure conversation was dropped before credentials had been exchanged with the far endpoint. Avoid using DROP USER while conversations are being created.
2010-08-13 04:15:32.09 spid61 Failed to check for pending query notifications in database "5" because of the following error when opening the database: 'A database user associated with the secure conversation was dropped before credentials had been exchanged with the far endpoint. Avoid using DROP USER while conversations are being created. The query notification subscriptions cleanup operation failed. See previous errors for details.'.
2010-08-13 04:15:32.10 spid61 Error: 9001, Severity: 16, State: 5.
2010-08-13 04:15:32.10 spid61 The log for database 'Test' is not available. Check the event log for related error messages. Resolve any errors and restart the database.
2010-08-13 04:15:32.10 spid61 Error: 3314, Severity: 21, State: 4.
2010-08-13 04:15:32.10 spid61 During undoing of a logged operation in database 'Test', an error occurred at log record ID (1835:7401:137). Typically, the specific failure is logged previously as an error in the Windows Event Log service. Restore the database or file from a backup, or repair the database.
Symptom 3: Restoring the database from its backup may take a long time and messages similar to the following are logged in SQL Server Errorlog:
Date Time SPID Query notification delivery could not send message on dialog '{ Dialog ID }.'. Delivery failed for notification '?<qn:QueryNotification xmlns:qn="http://schemas.microsoft.com/SQL/Notifications/QueryNotification" id="2881" type="change" source="database" info="restart" database_id="7" sid="0x010500000000000515000000FA48F22A6990BA52422C73DFF9030000"><qn:Message>4a4c696b-645c-40fd-bfef-4f2bc7c599b4;eb99973e-3cc9-4c7e-b4b9-47d8cf590c43</qn:Message></qn:QueryNotification>' because of the following error in service broker: 'The conversation handle "<Conversation Handler>" is not found.'.
Note: You may encounter the issue during recovery phase of the database. Recovery is also run on a database when database is brought online, server is restarted, etc.