Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. ADO Persisted Recordset XML

ADO Persisted Recordset XML

Scheduled Pinned Locked Moved Visual Basic
csharpxmlquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DA_Loring
    wrote on last edited by
    #1

    Hi Can anyone tell me if there is a method of loading an ADO persisted recordset XML file (VB6) into a .NET datatable, without installing ADODB in the project?

    David Loring !! Keep Music Live !!

    D 1 Reply Last reply
    0
    • D DA_Loring

      Hi Can anyone tell me if there is a method of loading an ADO persisted recordset XML file (VB6) into a .NET datatable, without installing ADODB in the project?

      David Loring !! Keep Music Live !!

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      DA_Loring wrote:

      without installing ADODB in the project?

      Which project? The VB6 one that writes the XML file or the VB.NET one that loads it? Or do I have that backwards? The only other way would be to load the document into an XmlDocument object and parse it manually.

      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      D 1 Reply Last reply
      0
      • D Dave Kreskowiak

        DA_Loring wrote:

        without installing ADODB in the project?

        Which project? The VB6 one that writes the XML file or the VB.NET one that loads it? Or do I have that backwards? The only other way would be to load the document into an XmlDocument object and parse it manually.

        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        D Offline
        D Offline
        DA_Loring
        wrote on last edited by
        #3

        Hi Dave The VB6 project writes the file and the .NET project loads it. I did find .ReadXML but the project is not in a state to run this yet. Would .ReadXML understand the VB6 recordset schema? The code I was thinking to use is dTable.ReadXml(shareParams.OperationalShare & "\" & shareParams.GeneralInputFolder & "\" & dtRow("DataFileName")) Where dTable is a DataTable and the parameter is the file name.

        David Loring !! Keep Music Live !!

        D 1 Reply Last reply
        0
        • D DA_Loring

          Hi Dave The VB6 project writes the file and the .NET project loads it. I did find .ReadXML but the project is not in a state to run this yet. Would .ReadXML understand the VB6 recordset schema? The code I was thinking to use is dTable.ReadXml(shareParams.OperationalShare & "\" & shareParams.GeneralInputFolder & "\" & dtRow("DataFileName")) Where dTable is a DataTable and the parameter is the file name.

          David Loring !! Keep Music Live !!

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          XML is a standardized format, having nothing to do with VB6. ADO will still use the same data types. And yes, you'd probably use DataSet.ReadXml to load the data. It's easy enough to test. Should take you about 20 minutes to wipe together two small apps to test the data export to XML and read it again in VB.NET.

          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          D 1 Reply Last reply
          0
          • D Dave Kreskowiak

            XML is a standardized format, having nothing to do with VB6. ADO will still use the same data types. And yes, you'd probably use DataSet.ReadXml to load the data. It's easy enough to test. Should take you about 20 minutes to wipe together two small apps to test the data export to XML and read it again in VB.NET.

            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            D Offline
            D Offline
            DA_Loring
            wrote on last edited by
            #5

            Thanks very much for your help Dave.

            David Loring !! Keep Music Live !!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups