Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.84 KB

File metadata and controls

48 lines (38 loc) · 1.84 KB
title bcp_done | Microsoft Docs
ms.custom
ms.date 03/14/2017
ms.prod sql
ms.prod_service database-engine, sql-database, sql-data-warehouse, pdw
ms.reviewer
ms.technology native-client
ms.topic reference
apiname
bcp_done
apilocation
sqlncli11.dll
apitype DLLExport
helpviewer_keywords
bcp_done function
ms.assetid e59b3f16-5b59-40da-880f-f3edf657d1ee
author markingmyname
ms.author maghan
monikerRange >=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current

bcp_done

[!INCLUDEappliesto-ss-asdb-asdw-pdw-md]

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