Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.51 KB

File metadata and controls

42 lines (32 loc) · 1.51 KB
title bcp_done
description bcp_done
author markingmyname
ms.author maghan
ms.date 03/14/2017
ms.service sql
ms.subservice native-client
ms.topic reference
helpviewer_keywords
bcp_done function
apilocation sqlncli11.dll
apiname bcp_done
apitype DLLExport

bcp_done

[!INCLUDESQL Server Azure SQL Database Synapse Analytics PDW]

Ends a bulk copy from program variables to [!INCLUDEssNoVersion] performed with bcp_sendrow.

Syntax

  
DBINT bcp_done (  
    HDBC hdbc);  

Arguments

hdbc
Is the bulk copy-enabled ODBC connection handle.

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 all data results in errors.

See Also

Bulk Copy Functions