INF: BCP and Transaction Logging

Last reviewed: April 25, 1997
Article ID: Q46356

The information in this article applies to:

  - Microsoft SQL Server version 4.2 for OS/2

This article discusses the use of BCP (bulk copy program) as it applies to the transaction log.

If BCP IN is run on a table without an index, the inserts are not logged; however, the only way BCP can be run on such a table is to set the SELECT INTO/BULKCOPY dboption.

If a BCP IN is run on a table with an index, the inserts are logged (and the index is populated), regardless of the setting of the SELECT INTO/BULKCOPY dboption.

It is important to note that transaction logging is never turned off completely. All page and extent allocations must be logged. This is needed to roll back the BCP operation in case of failure.

Note that SELECT INTO/BULKCOPY cannot be set in the master database; that is, only indexed tables can be loaded with BCP in the master database.

After the BCP IN operation is complete, it is strongly suggested that a backup of the database be performed to preserve all of the new data that has been loaded into the database.


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