Sets the total number of columns found in the user file for use with a bulk copy into or out of Microsoft® SQL Server™.
RETCODE bcp_columns (
PDBPROCESS dbproc,
INT file_colcount );
SUCCEED or FAIL.
This function can be called only after bcp_init has been called with a valid file name.
You should call this function only if you intend to use a user-file format that differs from the default. For a description of the default user-file format, see bcp_init.
After calling bcp_columns, you must call bcp_colfmt file_colcount times because you are defining a completely custom file format.
bcp_colfmt | bcp_init |