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?




Answers were Sorted based on User's Feedback



We all know that Dataset is purely disconnected architechure, but we also know that we can update ..

Answer / rumpa

By using Data Adapter Update(DataSet,DataTable)

Is This Answer Correct ?    21 Yes 6 No

We all know that Dataset is purely disconnected architechure, but we also know that we can update ..

Answer / komal gupta

As DataAdaptor is Internally build of Select, Insert , Update and Delete Command,It can be updated via using da.Update(ds) , It will internally create Insert/Update/Delete Commnand for DataAdaptor (as per modifcation. Or else We can write specific Insert/Update/Delete Command for Every Action of User and attch these command to DataAdaptor.

Is This Answer Correct ?    4 Yes 2 No

We all know that Dataset is purely disconnected architechure, but we also know that we can update ..

Answer / vasu

IN DataSet it will use the DataAdapter for communication
with data base when dataset updating the data DataAdapter
will open the connection automatically lost.

Is This Answer Correct ?    2 Yes 0 No




We all know that Dataset is purely disconnected architechure, but we also know that we can update ..

Answer / venu

Ya dataset have drawback.it is not updated in database
automatically.we have to use
da.update(dataset_object,Table_name);
At this time only update the table in your database.

Is This Answer Correct ?    4 Yes 3 No

We all know that Dataset is purely disconnected architechure, but we also know that we can update ..

Answer / 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

We all know that Dataset is purely disconnected architechure, but we also know that we can update ..

Answer / kishore

we can update it by using fill();

Is This Answer Correct ?    3 Yes 14 No

Post New Answer



More ADO.NET Interview Questions

What is typed dataset ?

0 Answers   NA,


What is different between sqlcommand object and command behavior object?

0 Answers  


What property must be set and what method must be called in your code to bind the data from some data source to the Repeater control?

0 Answers  


I loaded the dataset with a table of 10 records. One of the records is deleted from the backend, how do you check whether all the 10 records were present while updating the data(which event and steps) and throw the exception 28 can datareader hold data from multiple tables?

0 Answers  


What happens when we issue Dataset.ReadXml command?

1 Answers  






What are the advantages and drawbacks of using ado.net?

0 Answers  


What is the default timeout specified for "sqlcommand.commandtimeout" property?

0 Answers  


Explain what is datagrid with an example?

0 Answers   C DAC, CDAC,


What are the Different layers in ADO.Net?

7 Answers  


How To Update A Column In A DataGrid Using C#.NET? I am getting InvalidCastException as (Specified cast is not valid) while updating 2nd column in a datagrid? Id,firstname,lastname are the three columns of my datagrid respectively. I wanted to edit the second column(lastname) and update it. I did the following code in DataGrid's updatecommand(),but failed to update ! Int varid=(int)DataGrid1.DataKeys[e.Item.ItemIndex]; TextBox lnm=(TextBox)e.Item.Cells[2].Controls[0]; string str=lnm.Text ; SqlCommand cmd=new SqlCommand("update customer set lastname='" + str + "' where id=" + varid + "",con); cmd.ExecuteNonQuery(); DataGrid1.EditItemIndex=- 1; DataGrid1.DataBind();

2 Answers   TCS, Mind Tree,


WHAT Are the major major compnents of a data provider in ADO.net.

14 Answers   Infosys, Wipro,


How can we load multiple tables in a dataset?

0 Answers  






Categories