Methods for moving data  bcp requirements

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

Importing and exporting data with bcp

Transact-SQL commands cannot transfer data in bulk. For this reason, you must use bcp for any large transfers. You can use bcp to:

Adaptive Server can accept data in any character or binary format, as long as the data file describes either the length of the fields or the terminators, the characters that separate columns.

The structures in the tables involved in the transfer need not be identical, because when bcp:

When the transfer is complete, bcp informs you of the:

If bcp runs successfully, you see a return status of 0. The return status generally reflects errors from the operating system level and correspond to the ones listed in the errno.h file in the /usr/include/sys/ directory.





Copyright © 2005. Sybase Inc. All rights reserved. bcp requirements

View this book as PDF