We all know that Dataset is purely disconnected
architechure, but we also know that we can update the
changes made to the dataset can be updated in the backend
database. when there is no connection how does the update
happedn?
Answer Posted / neha
DataAdapter helps in updating back the database through its
update method. That is,
adapter.Update(ds);
It does this even when the connection is closed. Actually,
data adapter opens connection object to update the records,
after the records are updated, the connection is closed
again. Since there must be some path from application to
database in order to update and retrieve records. Thus, to
do this, adapter uses the connection.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is fill method in ado.net?
What is ado.net explain with diagram?
What is the return type of executescalar?
What is the default Timeout for SqlCommand.CommandTimeout property?
What is the use of data grid?
What is ado.net code?
What is difference between ado.net and asp net?
Can we connect two dataadapters to same data source using single connection at same time?
Explain how do you connect to sql server database without using sqlclient?
Why is stored procedure used in ado.net?
What is ado.net and its architecture?
Which ado.net object is very fast in getting data from the database?
How to add a javaScript function in a datagrid?
How can I retrieve two tables of data at a time by using data reader?
What is ado.net components?