Sets the program variable data length for the current bulk copy into SQL Server.
RETCODE bcp_collen (
PDBPROCESS dbproc,
DBINT varlen,
INT table_column );
where
SUCCEED or FAIL.
The bcp_collen function allows you to change the program variable data length for a particular column while running a copy IN through calls to bcp_bind.
Initially, the program variable data length is determined when bcp_bind is called. If the program variable data length changes between calls to bcp_sendrow and no length prefix or terminator is being used, you can call bcp_collen to reset the length. The next call to bcp_sendrow uses the length you just set.
There must be a separate bcp_collen call for every column in the table whose data length you want to modify.
bcp_bind, bcp_colptr, bcp_sendrow