This documentation is archived and is not being maintained.

SqlBulkCopy.WriteToServer Method

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

Name Description
SqlBulkCopy.WriteToServer (DataRow[]) Copies all rows from the supplied DataRow array to a destination table specified by the DestinationTableName property of the SqlBulkCopy object.
SqlBulkCopy.WriteToServer (DataTable) Copies all rows in the supplied DataTable to a destination table specified by the DestinationTableName property of the SqlBulkCopy object.
SqlBulkCopy.WriteToServer (IDataReader) Copies all rows in the supplied IDataReader to a destination table specified by the DestinationTableName property of the SqlBulkCopy object.
SqlBulkCopy.WriteToServer (DataTable, DataRowState) Copies only rows that match the supplied row state in the supplied DataTable to a destination table specified by the DestinationTableName property of the SqlBulkCopy object.
Show: