It depends on how you got those records there. If the Rowstate of each row
is "Added" then all you need to do is provide a valid Insert command to your
dataadapter and call the .Update method of the adapter. So, if you are
filling it from another table in this db or another db, then when you call
DataAdapter.Fill from the original adapter, set the .AcceptChangesDuringFill
property to false. This will cause all of the records inserted to have a
rowstate or Added. Then call .Update with an adapter who's update command
is pointing to the destination table, and they'll all be inserted.
http://www.knowdotnet.com/articles/datasetmerge.html
Otherwise, you may need to take a different approach. If whatever approach
you used (like manually adding the rows) cause the Rowstate to be added, the
same will hold true. Otherwise, you may have to loop through the Dataset,
and use the values as paramaters for an insert statement or use the values
to manually build an insert statement, then calling executeNonQuery. By far
calling update is the easisest. You can check if the dataset has changes
via DataSet.HasChanges and if so, let me know what the rowstate is if it's
not added, I'll walk you through the second approach I mentioned here.
HTH,
Bill