DbDataAdapter.UpdateBatchSize Property
Assembly: System.Data (in system.data.dll)
'Declaration Public Overridable Property UpdateBatchSize As Integer 'Usage Dim instance As DbDataAdapter Dim value As Integer value = instance.UpdateBatchSize instance.UpdateBatchSize = value
/** @property */ public int get_UpdateBatchSize () /** @property */ public void set_UpdateBatchSize (int value)
public function get UpdateBatchSize () : int public function set UpdateBatchSize (value : int)
Property Value
The number of rows to process per batch.| Value is | Effect |
|---|---|
| 0 | The DbDataAdapter will use the largest batch size that the server can handle. |
| 1 | Disables batch updating. |
| > 1 | Changes are sent using batches of UpdateBatchSize operations at a time. |
Use the UpdateBatchSize 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). See Performing Batch Updates with a DataAdapter for more information.
An ArgumentOutOfRangeException will be thrown if the value is set to a number less than zero.
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, 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.