SqlBulkCopy Tutorial
(Under Construction)


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

SqlBulkCopy NotifyAfter

Description

Number of rows to process before raising the SqlRowsCopied events.

  • Type: System.Int32
  • Default Value: 0 (None)

Example

using (SqlBulkCopy bulkCopy = new SqlBulkCopy(connectionString))
{
    // SET NotifyAfter value.
    bulkCopy.NotifyAfter = 4000;

    bulkCopy.SqlRowsCopied += (sender, args) => { /* code */ };

    bulkCopy.DestinationTableName = "TheDestinationTable";
    bulkCopy.WriteToServer(reader);
}