ImportData Method

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新しい開発作業では、この機能の使用を避け、現在この機能を使用しているアプリケーションは修正するようにしてください。

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

構文

object.ImportData(BulkCopy)as Long

Parts

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

  • BulkCopy
    Expression that evaluates to a BulkCopy object.

Prototype (C/C++)

HRESULT ImportData(
LPSQLDMOBULKCOPY Bcp,
LPLONG plRowsImported = NULL);

Returns

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.

Applies To: