bcp_columns

Description

Set the total number of columns found in the host file.

Syntax

RETCODE bcp_columns(dbproc, host_colcount)
 
DBPROCESS    *dbproc;
int                        host_colcount;

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.

host_colcount

The total number of columns in the host file. Even if you are preparing to bulk copy data from the host file to an Adaptive Server table and do not intend to copy all columns in the host file, you must still set host_colcount to the total number of host file columns.

Returns

SUCCEED or FAIL.

Usage

See also

bcp_colfmt, bcp_init