Sets the program variable data address for the current copy into Microsoft® SQL Server™.
RETCODE bcp_colptr (
HDBC hdbc,
LPCBYTE pData,
INT idxServerCol );
SUCCEED or FAIL.
The bcp_colptr function allows you to change the address of source data for a particular column when copying data to SQL Server with bcp_sendrow.
Initially, the pointer to user data is set by a call to bcp_bind. If the program variable data address changes between calls to bcp_sendrow, you can call bcp_colptr to reset the pointer to the data. The next call to bcp_sendrow sends the data addressed by the call to bcp_colptr.
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 |
bcp_collen | SQLColumns |
bcp_moretext |