DataSets

J

JimHeavey

I want to create a dataset in one program and save it to the hard drive and
then I want to read it in another program as a dataset....can I do this....Is
there an example? I know that I could create a comma delimited file and go
that way, but I was thinking there there was a was to save it out and read it
back in as a dataset.

Thanks in advance for your assistance!!!!
 
I

Israel

I want to create a dataset in one program and save it to the hard drive and
then I want to read it in another program as a dataset....can I do this.....Is
there an example?  I know that I could create a comma delimited file andgo
that way, but I was thinking there there was a was to save it out and readit
back in as a dataset.

Thanks in advance for your assistance!!!!

It can be easily saved/loaded to/from XML via methods on the DataSet
class.
 
I

Ignacio Machin ( .NET/ C# MVP )

I want to create a dataset in one program and save it to the hard drive and
then I want to read it in another program as a dataset....can I do this.....Is
there an example?  I know that I could create a comma delimited file andgo
that way, but I was thinking there there was a was to save it out and readit
back in as a dataset.

Thanks in advance for your assistance!!!!

Hi,

to write:
DataSet.WriteXml ( targetFile, XmlWriteMode.WriteSchema)

to read:
DataSet.ReadXml
 

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