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.
Assembly: System.Data (in System.Data.dll)
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 ofoperations at a time.
When setting this to a value other than 1 ,all the commands associated with the DbDataAdapter must have their UpdatedRowSource property set to None or OutputParameters. An exception will be thrown otherwise.
Use the DataSet. If the data provider supports batch processing, this can increase application performance by reducing the number of round-trips to the server. In ADO.NET 2.0, this property is supported for the .NET data providers for SQL Server (SqlClient) and Oracle (OracleClient).property to update a data source with changes from a
Executing an extremely large batch could decrease performance. Therefore, you should test for the optimum batch size setting before implementing your application.
An ArgumentOutOfRangeException will be thrown if the value is set to a number less than zero.
Available since 2.0