BatchImported Event
This documentation is archived and is not being maintained.

BatchImported Event

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 BatchImported event occurs when a bulk copy transaction is committed.

Private Sub
Message as String


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


String that contains descriptive message text.

HRESULT BatchImported(SQLDMO_LPCSTR Message);

The BatchImported event is raised only when the BulkCopy object is used as a parameter of the ImportData method of the Table object.

The Microsoft SQL Server bulk copy process can copy large amounts of data from an external data file to a SQL Server table. By default, all rows in the external data file are inserted in a single transaction when a data import operation is performed by using the BulkCopy object.

SQL Server does not guarantee data integrity until and unless a bulk copy transaction is committed.

Use the ImportRowsPerBatch property of the BulkCopy object to adjust the size of the bulk copy transaction.

© 2016 Microsoft