BUG: BCP Inserts Logged If Dest. Table Has Trigger

Last reviewed: April 28, 1997
Article ID: Q80633

The information in this article applies to:
  • Microsoft SQL Server version 4.2 for OS/2
BUG# 1222 (4.2)

SYMPTOMS

When the bulk copy program (BCP) is used to insert data into a SQL Server table, the insertion of the rows is logged in the transaction log, even though no indexes are present on the destination table.

CAUSE

The "fast" (or "non-logged") version of BCP should be used if the table into which the data is being inserted does not contain any indexes. However, if the table contains any kind of a trigger (INSERT, UPDATE, or DELETE trigger), the insertion of the rows from BCP will be logged. The presence of a trigger on the table will only cause the inserts to be logged; the trigger will not be fired.

WORKAROUND

To work around this problem, drop any triggers that are defined on that table before using BCP. When the BCP is complete, re-create the trigger(s).

STATUS

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


Additional query words:
Keywords : kbtool SSrvBCP
Version : 4.2
Platform : OS/2


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 28, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.