BUG: BCP Inserts Logged If Dest. Table Has TriggerLast reviewed: April 28, 1997Article ID: Q80633 |
The information in this article applies to:
SYMPTOMSWhen 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.
CAUSEThe "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.
WORKAROUNDTo 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).
STATUSMicrosoft 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:
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |