DB2 Version 9.7 for Linux, UNIX, and Windows

DB2BulkCopy.WriteToServer Method

Copies all rows from a data source to the destination table specified by the DestinationTableName property.

Overload List

Name Description
WriteToServer(System.Data.DataRow[ ]) Copies all rows from the DataRow array to the destination table specified by the DestinationTableName property.
WriteToServer(System.Data.DataTable) Copies all rows from the DataTable to the destination table specified by the DestinationTableName property.
WriteToServer(System.Data.DataTable, System.Data.DataRowState) Copies only the rows in the specified state (indicated in DataRowState) from the DataTable to the destination table specified by the DestinationTableName property.
WriteToServer(System.Data.IDataReader) Copies all rows from the DataReader to the destination table specified by the DestinationTableName property.

Exceptions

Exception type Condition
DB2Exception No rows have been copied successfully.