SqlBulkCopy Tutorial
(Under Construction)


This Website is under developement. It will be ready at the end of April.

SqlBulkCopy WriteToServerAsync

Description

The asynchronous version of WriteToServer. Copy all rows from the source to the destination table.

Example

using (SqlBulkCopy bulkCopy = new SqlBulkCopy(connectionString))
{
    bulkCopy.DestinationTableName = "TheDestinationTable";
    
    // CALL WriteToServerAsync method.
    bulkCopy.WriteToServerAsync(dt, cancellationToken);
}