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.
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.