bcp_done

Description

End a bulk copy from program variables into Adaptive Server.

Syntax

DBINT bcp_done(dbproc)
 
DBPROCESS*dbproc;

Parameters

dbproc

A pointer to the DBPROCESS structure that provides the connection for a particular front-end/Adaptive Server process. It contains all the information that DB-Library uses to manage communications and data between the front end and Adaptive Server.

Returns

The number of rows permanently saved since the last call to bcp_batch, or -1 in case of error.

Usage

bcp_done ends a bulk copy performed with bcp_bind and bcp_sendrow. It should be called after the last call to bcp_sendrow or bcp_moretext. Failure to call bcp_done after you have completed copying in all your data will result in unpredictable errors.

See also

bcp_batch, bcp_bind, bcp_moretext, bcp_sendrow