Moving data from one dataset to another

S

SH

What is the easiest way to move data from one dataset to another?

I have a web service that returns a dataset from a datasource. I then
want to move all the data in one datatable in that dataset to another
datatable in another dataset. (For instance, a table of Employees is
returned in the web service dataset. I then want to move all those
Employees into an Employees datatable in my local dataset.)

The first way that comes to mind is to use a loop - read and move each
record individually. I'm wondering if there is a single command that
will do it without a loop. (I'm programming in VB.NET, so the VB version
of the command would be appreciated if possible, although I can
cross-reference the C# version myself.)

Thanks for any assistance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top