DataSets

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SmltSGVhdmV5?=

    DataSets

    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!!!!
  • Israel

    #2
    Re: DataSets

    On Jun 2, 4:23 pm, JimHeavey <JimHea...@disc ussions.microso ft.com>
    wrote:
    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.

    Comment

    • Ignacio Machin ( .NET/ C# MVP )

      #3
      Re: DataSets

      On Jun 2, 4:23 pm, JimHeavey <JimHea...@disc ussions.microso ft.com>
      wrote:
      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.WriteXm l ( targetFile, XmlWriteMode.Wr iteSchema)

      to read:
      DataSet.ReadXml

      Comment

      Working...