Share via

SqlBulkCopy.RowsCopied Property


The number of rows processed in the ongoing bulk copy operation.

 property int RowsCopied { int get(); };
public int RowsCopied { get; }
member this.RowsCopied : int
Public ReadOnly Property RowsCopied As Integer

Property Value

The integer value of the RowsCopied property.


This value is incremented during the SqlRowsCopied event and does not imply that this number of rows has been sent to the server or committed.

This value can be accessed during or after the execution of a bulk copy operation.

This value will wrap around and become negative if the number of rows exceeds int.MaxValue. Consider using the RowsCopied64 property.

Applies to