I need some help showing me how to go about storing/saving changes made in a dataset back to the table(s) in the database. I'm using C# with windows forms on visual studio. Database is a local SQL Server.
I have managed to get the data to the data set but cannot save changes. the below is not saving to the database. ds is my dataset.
ds.AcceptChanges();
SqlDataAdapter dataAdaptor = new SqlDataAdapter();
dataAdaptor.Update(ds.Tables[0]);