ADO.NET Roundtrip DataAdapter Question

Matthew Hunter <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <001f01c21400$ccd08b90$f1d231d2@co3033473a>
Guys,

When using the SQLDataAdapter or OLEDBDataAdapter to talk to the database, if you set each of the commands (ie. Select, Insert, update and delete) how many round trips does it do to the database?

For example, obviously the FILL function would use the Select statement and this would only have to contact the database once, but how about the UPDDATE command?  If you changed 5 records in the database and then added 2, would it need to contact the database 7 times or is it smart enough to send the commands as a batch and therefore only have to contact the database once?

Cheers

Matthew Hunter

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.