Jump to content

Updating Database Tables Problem

- - - - -

  • Please log in to reply
No replies to this topic

#1
Efi77

Efi77

    Newbie

  • Members
  • Pip
  • 1 posts
Hello!

I'm having problems updating database table from dataset.

I'm using the following code to update a new row in a table:

ProjectDataSet.MyTableProjectRow MyNewRow = projectDataSet.MyTableProject.NewMyTableProjectRow();

ProjectDataSet.MyTableProject.AddMyTableProjectRow(MyNewRow);

MyTableProjectTableAdapter.Update(MyNewRow);

tableAdapterManager.UpdateAll(projectDataSet);


Now, the dataset is updating correctly, but the table itself is not.

And after I restart the program the new data updated in the dataset is gone.

Anybody has any idea what is the problem?

Edited by Efi77, 01 January 2009 - 04:21 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users