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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Creation of User DSN

Creation of User DSN

Scheduled Pinned Locked Moved C / C++ / MFC
c++toolsquestion
4 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.
  • R Offline
    R Offline
    RaajaOfSelf
    wrote on last edited by
    #1

    Iam doing a MFC project .I need to launch the diaolog box which prompts the user to create the DSN ( which is normally done by manually clicking control panel->Administrative Tools->ODBC). How do i launch the Dialog box which prompts the user to create a new USER DSN .:) "Nothing worthwhile is ever achived without Deep thought and hardwork "-JRD Tata

    H B 2 Replies Last reply
    0
    • R RaajaOfSelf

      Iam doing a MFC project .I need to launch the diaolog box which prompts the user to create the DSN ( which is normally done by manually clicking control panel->Administrative Tools->ODBC). How do i launch the Dialog box which prompts the user to create a new USER DSN .:) "Nothing worthwhile is ever achived without Deep thought and hardwork "-JRD Tata

      H Offline
      H Offline
      HJo
      wrote on last edited by
      #2

      From the top of my head there are a couple of ways to do it: - SQLDriverConnect() in the ODBC API - CDatabase::Open() / OpenEx() It is probably possible to get it from other database APIs as well... Hope it helps!

      R 1 Reply Last reply
      0
      • H HJo

        From the top of my head there are a couple of ways to do it: - SQLDriverConnect() in the ODBC API - CDatabase::Open() / OpenEx() It is probably possible to get it from other database APIs as well... Hope it helps!

        R Offline
        R Offline
        RaajaOfSelf
        wrote on last edited by
        #3

        HJo, CDatabase::Open gives an option to OPEN .But it also gives an option to SELECT the DSN too .WHat i require is the dialog box which prompts the user to ADD,Remove ,COnfigure DSNs. ANyway ,thanks a lot for the suggestion

        1 Reply Last reply
        0
        • R RaajaOfSelf

          Iam doing a MFC project .I need to launch the diaolog box which prompts the user to create the DSN ( which is normally done by manually clicking control panel->Administrative Tools->ODBC). How do i launch the Dialog box which prompts the user to create a new USER DSN .:) "Nothing worthwhile is ever achived without Deep thought and hardwork "-JRD Tata

          B Offline
          B Offline
          Bartosz Bien
          wrote on last edited by
          #4

          Check out the function named ConfigDSN :cool: Regards, BB

          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