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 of operations at a time.
Use the property to update a data source with changes from a 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).
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.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.