ExportData Method (SQL-DMO)

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.

Applies To
Table Object View Object

Syntax

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

Returns

A long integer indicating the number of rows written to the data file.

Prototype (C/C++)

HRESULT ExportData(
LPSQLDMOBULKCOPY Bcp,
LPLONG plRowsExported = NULL);


(c) 1988-98 Microsoft Corporation. All Rights Reserved.