Hello All,
I have a situation where I serialize data from a dataset to an xml file as a method of backup. I am trying to get the data deserialized back to the dataset.
But for some reason, I cannot get the data to persist back to the DB. I don't receive any error messages either. The first chunk of code is the serialization code and the second chunk is the deserialization code. I can show that the deserialization back to the dataset is complete because this code in the 2nd block - DataGridView2.DataSource = Movie_dbDataSet.movie_tb - displays the data and it looks correct in the datagridview2. I call the update method but it does not get persisted back to the db. I must be looking at the problem but can't see it. I have included a screen shot that shows the dataset has the restored data in it but it does not persist to the db.
VB2010 with SQL Server 2008 R2 (Express)
I have a situation where I serialize data from a dataset to an xml file as a method of backup. I am trying to get the data deserialized back to the dataset.
But for some reason, I cannot get the data to persist back to the DB. I don't receive any error messages either. The first chunk of code is the serialization code and the second chunk is the deserialization code. I can show that the deserialization back to the dataset is complete because this code in the 2nd block - DataGridView2.DataSource = Movie_dbDataSet.movie_tb - displays the data and it looks correct in the datagridview2. I call the update method but it does not get persisted back to the db. I must be looking at the problem but can't see it. I have included a screen shot that shows the dataset has the restored data in it but it does not persist to the db.
VB2010 with SQL Server 2008 R2 (Express)
Last edited: