G
Guest
Hi all,
I've been wondering which one of these to use
in my application, in terms of efficiency:
the Update method of the DataAdapter or the
ExecuteNonQuery method of the Command?
Using OleDbDataAdapter.Update() is so much
easier than creating a command object with all
the parameters, as it just involves calling the
method and passing it a DataTable object.
(Some great design and elegancy from the side
of the .NET architects ).
I'm trying to keep my application as connected
as possible, so that when I update/insert/delete
a row, the data source would be immediately
updated accordingly.
I wonder if the DataAdapter iterates over the
changed rows only, or over all the rows in the
DataTable... Interesting
Thank you :
I've been wondering which one of these to use
in my application, in terms of efficiency:
the Update method of the DataAdapter or the
ExecuteNonQuery method of the Command?
Using OleDbDataAdapter.Update() is so much
easier than creating a command object with all
the parameters, as it just involves calling the
method and passing it a DataTable object.
(Some great design and elegancy from the side
of the .NET architects ).
I'm trying to keep my application as connected
as possible, so that when I update/insert/delete
a row, the data source would be immediately
updated accordingly.
I wonder if the DataAdapter iterates over the
changed rows only, or over all the rows in the
DataTable... Interesting
Thank you :