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. C#
  4. CreateDataReader from DataSet in Visual Studio 2003

CreateDataReader from DataSet in Visual Studio 2003

Scheduled Pinned Locked Moved C#
visual-studiocsharpquestion
3 Posts 3 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
    Diego F
    wrote on last edited by
    #1

    Hello. I have an application in VS 2005 that I must migrate to VS 2003 (what a great upgrade is 2005 btw), and I see that there is no dataset.CreateDataReader method. Is there other way to do that? Do you know from other implementation I can find anywhere?

    Regards, Diego F.

    P C 2 Replies Last reply
    0
    • D Diego F

      Hello. I have an application in VS 2005 that I must migrate to VS 2003 (what a great upgrade is 2005 btw), and I see that there is no dataset.CreateDataReader method. Is there other way to do that? Do you know from other implementation I can find anywhere?

      Regards, Diego F.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      One way would be to miss out the dataset and manually create a DataReader using ExecuteDataReader() on the command.

      Deja View - the feeling that you've seen this post before.

      1 Reply Last reply
      0
      • D Diego F

        Hello. I have an application in VS 2005 that I must migrate to VS 2003 (what a great upgrade is 2005 btw), and I see that there is no dataset.CreateDataReader method. Is there other way to do that? Do you know from other implementation I can find anywhere?

        Regards, Diego F.

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        If think if you are migrating backwards you will find a lot of things that didn't exist in the previous version. The best workaround that I can suggest is that all DataReaders implement the IDataReader interface. Create your own class that implements the IDataReader interface that has a constructor that is a DataSet.


        Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

        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