หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
Ends a bulk copy from program variables to SQL Server 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.