OracleDataAdapter.UpdateBatchSize Property

Note: This property is new in the .NET Framework version 2.0.

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.

Namespace: System.Data.OracleClient
Assembly: System.Data.OracleClient (in

public override int UpdateBatchSize { get; set; 
/** @property */
public int get_UpdateBatchSize ()

/** @property */
public void set_UpdateBatchSize (int value)

public override function get UpdateBatchSize () : int

public override function set UpdateBatchSize (value : int)

Property Value

The number of rows to process per batch.




The TSystem.Data.OracleClient.OracleDataAdapter uses the largest batch size that the server can handle.


Disables batch updating.

> 1

Changes are sent using batches of UpdateBatchSize operations at a time.

When setting this to a value other than 1 all the commands associated with the OracleDataAdapter have to have their UpdatedRowSource property set to None or OutputParameters. An exception is thrown otherwise.

Use the UpdateBatchSize 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.

An ArgumentOutOfRangeException is thrown if the value is set to a number less than zero.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0