ExportData Method

Description

Bulk copies data from the table to a data file. Set the properties of a created BulkCopy object as desired, and pass it to the ExportData method.

Visual Basic

lRowsExported = Table.ExportData ( [Bcp :=] BulkCopy )

C++

HRESULT pTable->ExportData (
LPSQLOLEBULKCOPY
pBulkCopy,
LPLONG
plRowsExported = NULL );

Elements


Element Type Description

lRowsExported Long Returned number of rows exported from the table to the data file
BulkCopy BulkCopy Created BulkCopy object that specifies how to execute the bulk copy