bcp_done

bcp_done

SQL Server 2000

Ends a bulk copy from program variables into Microsoft® SQL Server™ 2000 performed with bcp_bind and bcp_sendrow.

Syntax

DBINT bcp_done ( PDBPROCESS dbproc );

Arguments

dbproc

Is the DBPROCESS structure that is the handle for a particular workstation or SQL Server process. It contains all the information that DB-Library uses to manage communications and data between the workstation and SQL Server.

Returns

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

Remarks

Call bcp_done after the last call to bcp_sendrow or bcp_moretext. Failure to call bcp_done after copying in all your data results in unpredictable errors.

See Also

bcp_batch

bcp_moretext

bcp_bind

bcp_sendrow

Show:
© 2016 Microsoft