Set the program variable data address for the current bulk copy into the database.
RETCODE bcp_colptr(dbproc, colptr, table_column) DBPROCESS *dbproc; BYTE *colptr; int table_column;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/Adaptive Server Enterprise process. It contains all the information that DB-Library uses to manage communications and data between the front end and Adaptive Server Enterprise.
The address of the program variable.
The column in the Adaptive Server Enterprise table to which the data will be copied. Column numbers start at 1.
SUCCEED or FAIL.
The bcp_colptr function allows you to change the program variable data address for a particular column while running a copy in through calls to bcp_bind.
Initially, the program variable data address is determined when bcp_bind is called. If the program variable data address changes between calls to bcp_sendrow, you may call bcp_colptr to reset the address of the data. The next call to bcp_sendrow will use the data at the address you just set.
There must be a separate bcp_colptr call for every column in the table whose data address you want to modify.