Specifying a network packet size  Copy out and error files

Chapter 4: Using bcp to Transfer Data to and from Adaptive Server

Copy in and error files

When you specify the -e error_file option with copy in, bcp stores the rows that it cannot copy in to Adaptive Server in the specified error file.

bcp in detects two types of errors:

The copy in process displays error messages on your monitor.

The following example loads the newpubs file into the publishers database, storing any error rows in the pub_err file:

bcp pubs2..publishers in newpubs -epub_err

Keep the following in mind when working with error files generated by copy in:





Copyright © 2005. Sybase Inc. All rights reserved. Copy out and error files

View this book as PDF