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
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 |
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 |
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 |
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 |
Explain the advantage of ADO.Net?
What are the ado.net connection pooling parameters?
What are the 4 types of classes in ADO.NET?
What is sqldatareader in ado.net?
How can you identify whether or not any changes are made to the DataSet object since it was last loaded?
What is a datatable?
8 Answers State Bank Of India SBI,
Does dapper use ado.net?
how we can fire event in databound coulm in datagfrid withot using button?
Explain ODP.net
What is different between sqlcommand object and command behavior object?
ADO and ADO.NET differences?
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.
2 Answers Fulcrum Logic, Satyam,