Sets the program variable data address for the current copy into Microsoft® SQL Server™.
RETCODE bcp_colptr (
PDBPROCESS dbproc,
LPCBYTE colptr,
INT table_column );
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 can call bcp_colptr to reset the address of the data. The next call to bcp_sendrow uses 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.
bcp_bind | bcp_sendrow |