DB2 Version 9.7 for Linux, UNIX, and Windows

DB2BulkCopy Members

Facilitates the copying of rows from one data source to another. The following tables list the members exposed by the DB2BulkCopy class.

Public Constructors

Name Description
public method DB2BulkCopy Overloaded. Initializes a new instance of the DB2BulkCopy class.

Public Properties

Name Description
public property BulkCopyTimeout Number of seconds for the bulk copy operation to complete before it times out.
public property ColumnMappings Mappings of columns from the data source table to columns in the destination table.
public property DestinationTableName Name of the destination table on the server.
public property Errors Errors in the bulk copy operation.
public property NotifyAfter The number of rows to copy before generating a DB2RowsCopied event.

Public Methods

Name Description
public method Close Closes the DB2BulkCopy instance.
public method Dispose Closes the DB2BulkCopy instance.
public method WriteToServer Overloaded. Copies all rows from a data source to the destination table specified by the DestinationTableName property.

Public Events

Name Description
public event DB2RowsCopied Occurs every time the number of rows copied reaches the value set in the NotifyAfter property.