Gets or sets the number of rows that are processed in each round-trip to the server.
Assembly: System.Data (in System.Data.dll)
abstract UpdateBatchSize : int with get, set override UpdateBatchSize : int with get, set
Property ValueType: System.Int32
The number of rows to process per-batch.
There is no limit on the batch size..
Disables batch updating.
Changes are sent using batches of operations at a time.
Gets or sets a value that enables or disables batch processing support, and specifies the number of commands that can be executed in a batch.
Use the property to update a data source with changes from a DataSet. This can increase application performance by reducing the number of round-trips to the server.
Executing an extremely large batch could decrease performance. Therefore, you should test for the optimum batch size setting before implementing your application.
An ArgumentOutOfRangeException is thrown if the value is set to a number less than zero.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.