blah blah blah is here! blah blah » Close

up0down
link

Hi,
If i retreive data to teh dataset using SQLDataAdapter we call teh Fill() of the data adapter.
If i update then i should call update() from the dataadapter
if i delete then i should call delete() fromthe dataadapter.
What method of Dataadapter should i call to insert a record to teh dataset?
cheers

last answered 2 years ago

1 answers

up0down
link

The SqlDataAdapter class doesn't have a Delete() method.
Instead, the Update() method is used to write any insertions, modifications or deletions that have been made to the DataSet back to the database.
You might find it useful to read the <a target="_new" href="http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.aspx">MSDN documentation</a> for this class.

This post was imported from csharpfriends, if you have a similiar question please ask it again.

All previous members have been migrated, hope you enjoy the new platform!

Feedback