Updating the database using dataset and dataadapter Ass webcam online

The Update method, like the Fill method, takes as arguments an instance of a Data Set, and an optional Data Table object or Data Table name.The Data Set instance is the Data Set that contains the changes that have been made, and the Data Table identifies the table from which to retrieve the changes.

These relations would define the primary and foreign attributes of different Data Tables.

This tutorial is part of Database Programming Made Easy Series.

So be sure to select the best way in accessing your database.

There are some cases when you need to use Datasets along with Data Adapter to simplify the process of modifying a data with less coding.

One possible solution can be ignoring and Logging the error.

As we know the Update command of Data Adapter updates the database with modified row values.

Any ideas would be very helpful as I have been pulling my hair out for over two weeks now.

Feel free to message me at: [email protected] Is your primary key set to autonumber?

Hi i am using dataset inside a session and using dataadapter.update method to update in database this is working fine when i am inserting rows in this dataset and updating it but when i am deleting row by using this method it is updating in dataset but not updating in similar thing is working in another form very fine.

i am explaining it again.there are two button insert and update.

As I have mentioned in the previous tutorial on “How to Retrieve Data Using Data Readers”, I emphasized that if you want to just simply read data from the database you need to open it using data readers.

Comments are closed.