Increase update performance of sqlDataAdapter





5.00/5 (1 vote)
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.