Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / ADO.NET

Increase update performance of sqlDataAdapter

5.00/5 (1 vote)
29 Aug 2011CPOL 15.6K  
Increase update performance of sqlDataAdapter
An easy way to increase update performance of SqlDataAdapter is to send the changes to the database server in batches by assigning a value to the DbDataAdapter object’s UpdateBatchSize property. The default value of this property is 1, which causes each change to be sent to the server on a row-by-row basis. Setting the value to zero instructs the DbDataAdapter object to create the largest possible batch size for changes, or you can set the value to the number of changes you want to send to the server in each batch.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)