Import and Export Data with bcp

Transact-SQL commands cannot transfer data in bulk. For this reason, use bcp for any large transfers.

Uses for bcp include:

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.

Related reference
bcp