You can remove the old table
ds.Tables.Remove(dt);
or by name:
ds.Tables.Remove("Resource");
You can later add the table
ds.Tables.Add(dt);
or by name:
ds.Tables.Add("Resource");
Now you can loop the rows of Datatable/Dataset you can generate query or XML & then you can pass it to your stored procedure, then you can save it. So try...if you have any doubt then let us know