Click here to Skip to main content
15,886,592 members
Articles / ADO.NET
Tip/Trick

Increase update performance of sqlDataAdapter

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
29 Aug 2011CPOL 15.4K   1   1
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)


Written By
Software Developer
India India
I am a Software Developer in Dotnet technologies. I also provide online training in dotnet technologies.

Comments and Discussions

 
GeneralMy vote of 5 Pin
diego mesa tabares22-Jul-22 10:39
diego mesa tabares22-Jul-22 10:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.