BUG: Replication with Immediate-Updating Subscribers Fails with Error 21082

ID: Q241448


The information in this article applies to:
  • Microsoft SQL Server version 7.0

BUG #: 57295 (SQLBUG_70)

SYMPTOMS

If you have configured replication with immediate-updating subscribers, you may receive the following error during the initial synchronization:

Error 21082
Database property 'IsRecursiveTriggersEnabled' has to be true for subscribing databases at updatable subscribers.
When you view the Distribution Agent Error Details window, you will see that the Last Command will be similar to:

{call sp_addsynctriggers (N'TABLE1', N'null', N'SERVER1', N'test_repl', N'test_repl', N'sp_MSsync_ins_TABLE1_1', N'sp_MSsync_upd_TABLE1_1', N'sp_MSsync_del_TABLE1_1', N'dbo', N'null', N'msrepl_synctran_ts', N'null', 0x01)}  
This error occurs if the Recursive Triggers option is enabled in the subscribing database.


CAUSE

The error message returned is incorrect. It should read:

Error 21082
Database property 'IsRecursiveTriggersEnabled' has to be false for subscribing databases at updatable subscribers.
While doing initial synchronization for an immediate-updating subscriber, SQL Server calls sp_addsynctriggers, which creates immediate-updating triggers at the subscriber. The sp_addsynctriggers stored procedure checks to determine if the database option 'Recursive triggers' is set to TRUE for the subscribing database. If it is set to TRUE, sp_addsynctriggers fails with the error described in the SYMPTOMS section of this article. However, in the error message, the word "true" should actually read "false".


WORKAROUND

To work around this problem, disable the Recursive Triggers option on the subscribing database. To do this, you can either use the sp_dboption stored procedure, or use SQL Server Enterprise Manager by doing the following:

  1. In Enterprise Manager, right-click the subscribing database and click Properties on the shortcut menu.


  2. On the Options tab, clear the Recursive Triggers check box.


  3. Click OK.



STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

For more information on setting up replication with immediate-updating subscribers or on recursive triggers, see the SQL Server 7.0 Books Online.

Additional query words: repl sync synch synced synched synchronize synchronized synchronization dist task job err msg updateable

Keywords : kbSQLServ700
Version : winnt:7.0
Platform : winnt
Issue type : kbbug


Last Reviewed: January 14, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.