Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ImportData Method

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The ImportData method implements the bulk insert of data specified by the controlling BulkCopy object provided as an argument.

as Long


Expression that evaluates to an object in the Applies To list.


Expression that evaluates to a BulkCopy object.

HRESULT ImportData(
LPLONG plRowsImported = NULL);

The number of rows written to the Microsoft SQL Server table.

Set BulkCopy object properties to specify data insert parameters, such as the source file and format of the source file, and then use the ImportData method to execute the insert.

For more information about controlling a bulk-insert operation, see BulkCopy Object.

Community Additions

© 2015 Microsoft