Moving data from one dataset to another
- From: SH <shamada@xxxxxxxxxxx>
- Date: Wed, 15 Feb 2006 16:01:49 GMT
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.
.
- Follow-Ups:
- Re: Moving data from one dataset to another
- From: W.G. Ryan - MVP
- Re: Moving data from one dataset to another
- Prev by Date: Re: ODP .Net Connection Pool Problem on Web Application
- Next by Date: Re: A severe error occurred on the current command. sp_AddMergePublic
- Previous by thread: Conversion failed when converting from a character string to uniqueidentifier.
- Next by thread: Re: Moving data from one dataset to another
- Index(es):
Relevant Pages
|