The ExportData method uses the indicated BulkCopy object to copy data from a Microsoft® SQL Server™ database to the data file specified by the BulkCopy object.
| Table Object | View Object |
object.ExportData( BulkCopy ) as Long
| Part | Description |
|---|---|
| object | Expression that evaluates to an object in the Applies To list |
| BulkCopy | BulkCopy object controlling data export |
A long integer indicating the number of rows written to the data file.
HRESULT ExportData(
LPSQLDMOBULKCOPY Bcp,
LPLONG plRowsExported = NULL);