M
mick
I`ve been trying to get to know ADO.net lately and I wonder if anyone can
explain why the following does not work -
myDataSet.Clear();
myDataSet.AcceptChanges();
myTableAdapter.Update(myDataSet);
If you clear the dataset and then do the update shouldnt the database be
cleared as well. When I tried this the contents of the database are still
there when I rerun my app.
What I ended up doing was iterating throw the dataset and deleting row by
row but I`m curious why the above doesnt work.
TIA,
mick
explain why the following does not work -
myDataSet.Clear();
myDataSet.AcceptChanges();
myTableAdapter.Update(myDataSet);
If you clear the dataset and then do the update shouldnt the database be
cleared as well. When I tried this the contents of the database are still
there when I rerun my app.
What I ended up doing was iterating throw the dataset and deleting row by
row but I`m curious why the above doesnt work.
TIA,
mick