Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Table

Status
Not open for further replies.

kingduck

MIS
Oct 31, 2002
41
EG
Hi All;
I have a dataset with one table in it. after making updates to the table i am tring to save it using the DataAdapter. using the following command:

damf.Update(MyDataset, "Table1")

the following error keeps raising:

update requires a valid UpdateCommand when passed DataRow collection with modified rows

What am i doing wrong?

Thanks in advance
 
well for once the errormessage says it all. You don't have an updatecommand for the dataadapter. Try using a sqlcommandbuilder to fill the updatecommand.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top