• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • 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
1 Solution
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
MikeMCSDAuthor Commented:
that worked . . thanks bruintje
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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