bcp_options

Description

Set bulk copy options.

Syntax

RETCODE bcp_options (dbproc, option, value, valuelen)
 
DBPROCESS    *dbproc;
BYTE                 *value;
int                        valuelen;

Parameters

dbproc

A pointer to the DBPROCESS structure that provides the connection for a particular front-end/Adaptive Server process. It contains all the information that DB-Library uses to manage communications and data between the front end and Adaptive Server.

value

A generic BYTE pointer to the value of the specified option. As the following table describes, what value should point to depends on option:

Table 3-1: Values for value (bcp_options)

If option Is

*value should be

BCPLABELED

A DBBOOL value. Set *value to “true” to allow a bulk copy with sensitivity labels. Set *value to “false” for a normal bulk copy operation.

valuelen

The length of the data to which value points. If value points to a fixed-length item (for example a DBBOOL, DBINT, and so on), pass valuelen as -1.

Returns

SUCCEED or FAIL.

Usage

See also

bcp_init, bcp_control