[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

Copy a DataSet

I want to copy a DataSet into another DataSet, data and all:

Dim DataSet1 As DataSet = New DataSet
Dim DataSetOld As DataSet = New DataSet

DataSet1 has the data and I want to copy the whole thing into the a new
dataset called DataSetOld.
I want to set DataSetOld to DataSet1.  thanks
0
MikeMCSD
Asked:
MikeMCSD
1 Solution
 
bruintjeCommented:
Hello MikeMCSD,

Dim DataSet1 As DataSet = New DataSet
Dim DataSetOld As DataSet

to copy the dataset including data
DataSetOld = DataSet1.Copy

to copy the dataset excluding data
DataSetOld = DataSet1.Clone

hope this helps a bit
bruintje
0
 
MikeMCSDAuthor Commented:
that worked . . thanks bruintje
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now