Web Analytics Made Easy -
StatCounter C# - Saving Data to a .MDF file - CodingForum

Announcement

Collapse
No announcement yet.

C# - Saving Data to a .MDF file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • C# - Saving Data to a .MDF file

    I am using the Visual C# Express Edition and so far my program can read and write to the DataSet that was created for my .MDF file. But it can't get the date to save to the file. I am displaying the integer that is returned when I update it and I know that it can tell there are some rows that are changed. But it isn't actually updating the file or something.

    Code:
    int a = this.usersTableAdapter.Update(this.dataDataSet1.Users);
    int b = this.badWordsTableAdapter.Update(this.dataDataSet1.BadWords);
    MessageBox.Show(Convert.ToString(a));
    MessageBox.Show(Convert.ToString(b));
    This is the code I am using to update it but when i go to check the file after closing it, there changes arn't there. And even when I rerun the program it doesn't show the changes also. Any help on this?
Working...
X