BUG: Logreader Replicates a Combination of a Delete/Insert

Last reviewed: April 15, 1997
Article ID: Q155862

The information in this article applies to:
  • Microsoft SQL Server, version 6.0
BUG #: 14461

SYMPTOMS

The logreader task replicates a delete and a subsequent insert transaction on a particular table as a single update transaction on the subscriber. The necessary conditions are that the delete and insert implicit transactions must be in turn enclosed in an explicit transaction defined using BEGIN TRAN and COMMIT TRAN statements. In addition, the delete transaction must include reference, in the where clause, to the primary key column of the table. If the above conditions are met, the logreader task processes the combination of delete and insert as a singular update that is registered in the MSjob_commands table in the distribution database on the distributor.

WORKAROUND

Separate the DELETE and INSERT statements into two different transactions by not using the explicit BEGIN and COMMIT TRAN statements.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words:logreader replication update insert delete
transaction
Keywords : kbbug6.00 kbnetwork SSrvDRI
Version : 6.0
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 15, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.