What happens when u try to update data in a dataset in .NET
while the record is already deleted in SQL SERVER as backend?

Answer Posted / vaidyanathan r.

If the updating is done in DataSet then there will be no
error. It will work fine. Because Dataset is totally
disconnected from the Database and unaware of changes
happened in the backend. The user is free to update the
dataset.

Once the changed data is updated in the database(backend)
then an SQLException will be thrown.

Is This Answer Correct ?    19 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better ole db or odbc?

683


What does datareader object do?

748


What are the different row versions available in table?

727


What is the DataTableCollection?

799


Which ado.net object is very fast in getting data from the database?

859


What is the difference between the clone() and copy() methods of the dataset class?

776


What is the difference between OLEDB Provider and SqlClient?

719


Define executenonquery?

701


Can we load multiple tables in a dataset?

795


What are the benefits of using of ADO.NET in .NET 4.0?

734


How is it possible to get 2 tables of data at a time by using data reader?

688


What is the difference between Dataset. clone and Dataset.copy?

777


What is the meaning of executenonquery?

715


How can we add relation between tables in a dataset?

751


What is variable view?

666