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. Database & SysAdmin
  3. Database
  4. User Selectable databases via ADO

User Selectable databases via ADO

Scheduled Pinned Locked Moved Database
databasetutorialcomquestion
3 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.
  • R Offline
    R Offline
    Robert Vista
    wrote on last edited by
    #1

    Hello, I'm working on an application where the user needs to be able to select an external database to use within the application. I can handle mdb, db files, etc. But I'm not really sure how to handle allowing the user the ability to select and ODBC data source for example. Does ADO have some functionality that would allow me, the developer, to surface a standard dialog that the user could either select an ODBC data source and/or create and OLE DB source to access the data? I guess I'm looking for something similiar to ODBC's SQLConfigDataSource functionality. Perhaps this is my answer??? Thanks, Rob

    M 1 Reply Last reply
    0
    • R Robert Vista

      Hello, I'm working on an application where the user needs to be able to select an external database to use within the application. I can handle mdb, db files, etc. But I'm not really sure how to handle allowing the user the ability to select and ODBC data source for example. Does ADO have some functionality that would allow me, the developer, to surface a standard dialog that the user could either select an ODBC data source and/or create and OLE DB source to access the data? I guess I'm looking for something similiar to ODBC's SQLConfigDataSource functionality. Perhaps this is my answer??? Thanks, Rob

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      I'm not sure now but I remember in Open() function of your database there is a flag that specify if there is no ODBC database,open a dialog and user can choose database. Mazy **"If I go crazy then will you still Call me Superman If I’m alive and well, will you be There holding my hand I’ll keep you by my side with My superhuman might Kryptonite"**Kryptonite-3 Doors Down

      R 1 Reply Last reply
      0
      • M Mazdak

        I'm not sure now but I remember in Open() function of your database there is a flag that specify if there is no ODBC database,open a dialog and user can choose database. Mazy **"If I go crazy then will you still Call me Superman If I’m alive and well, will you be There holding my hand I’ll keep you by my side with My superhuman might Kryptonite"**Kryptonite-3 Doors Down

        R Offline
        R Offline
        Robert Vista
        wrote on last edited by
        #3

        Found what I was looking for in the Interactive SQL tool example http://www.codeproject.com/database/isqlado.asp It has some code showing the use of PromptNew. It was exactally what I needed for this project. Rob

        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