Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 UpdateBatchSize Property

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
OracleDataAdapter..::.UpdateBatchSize Property

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 System.Data.OracleClient.dll)
Visual Basic (Declaration)
Public Overrides Property UpdateBatchSize As Integer
Visual Basic (Usage)
Dim instance As OracleDataAdapter
Dim value As Integer

value = instance.UpdateBatchSize

instance.UpdateBatchSize = value
C#
public override int UpdateBatchSize { get; set; }
Visual C++
public:
virtual property int UpdateBatchSize {
    int get () override;
    void set (int value) override;
}
JScript
public override function get UpdateBatchSize () : int
public override function set UpdateBatchSize (value : int)

Property Value

Type: System..::.Int32
The number of rows to process per batch.

Value:

Effect:

0

There is no limit on the batch size.

1

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.

Executing an extremely large batch could decrease performance. Therefore, you should test for the optimum batch size setting before you implement your application.

An ArgumentOutOfRangeException is 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

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.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker