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 / C++ / MFC
  4. No DSN!

No DSN!

Scheduled Pinned Locked Moved C / C++ / MFC
databasehelpquestion
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.
  • H Offline
    H Offline
    halblonious
    wrote on last edited by
    #1

    Can anyone help me connect to a database ( an .mdf) and modify it and stuff without using a DSN? I'm not sure why this program that I'm trying to interface with doesn't use a DSN, but it doesn't seem to. Should I create my own DSN in order to access it? Any ideas would be helpful. halblonious

    S 1 Reply Last reply
    0
    • H halblonious

      Can anyone help me connect to a database ( an .mdf) and modify it and stuff without using a DSN? I'm not sure why this program that I'm trying to interface with doesn't use a DSN, but it doesn't seem to. Should I create my own DSN in order to access it? Any ideas would be helpful. halblonious

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      Check the specs for the ODBC driver you're using. The access driver, for instance, allows DSN-less connections via ODBC by specifying the DBQ=database-path-to-file and Driver={Microsoft Access (*.mdb} connection substrings, in addition to any others you might want. Generally you need to provide at least the driver name, and the path to the data for 'local' (non-server) access. Steve S

      H 1 Reply Last reply
      0
      • S Steve S

        Check the specs for the ODBC driver you're using. The access driver, for instance, allows DSN-less connections via ODBC by specifying the DBQ=database-path-to-file and Driver={Microsoft Access (*.mdb} connection substrings, in addition to any others you might want. Generally you need to provide at least the driver name, and the path to the data for 'local' (non-server) access. Steve S

        H Offline
        H Offline
        halblonious
        wrote on last edited by
        #3

        Thank you very much for you response, but can you please give me a little more in-depth syntax on how to do this? Maybe an example? Thanks again. Evan halblonious

        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