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. How can I open a password protected (encrypted) access Database with CDatabase Object.

How can I open a password protected (encrypted) access Database with CDatabase Object.

Scheduled Pinned Locked Moved C / C++ / MFC
databasequestion
5 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.
  • A Offline
    A Offline
    A Ms
    wrote on last edited by
    #1

    Hi How can I open a password protected (encrypted) access Database with CDatabase Object.

    M 1 Reply Last reply
    0
    • A A Ms

      Hi How can I open a password protected (encrypted) access Database with CDatabase Object.

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

      I assume the problem is with the password you don't have and not with actually opening the CDatabase Object ? :~

      Watched code never compiles.

      A 1 Reply Last reply
      0
      • M Maximilien

        I assume the problem is with the password you don't have and not with actually opening the CDatabase Object ? :~

        Watched code never compiles.

        A Offline
        A Offline
        A Ms
        wrote on last edited by
        #3

        I mean what connection string should I use? for example for opening a ordinary access file I Use

        CDatabase m_db;
        m_db.Open(NULL,false,false,L"ODBC;DRIVER={MICROSOFT ACCESS DRIVER (*.mdb)};DSN='';DBQ=C:\\a.mdb");

        so if my "a.mdb" file is password protected and the password is "123" what should i do?

        D 1 Reply Last reply
        0
        • A A Ms

          I mean what connection string should I use? for example for opening a ordinary access file I Use

          CDatabase m_db;
          m_db.Open(NULL,false,false,L"ODBC;DRIVER={MICROSOFT ACCESS DRIVER (*.mdb)};DSN='';DBQ=C:\\a.mdb");

          so if my "a.mdb" file is password protected and the password is "123" what should i do?

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Amir_m wrote:

          so if my "a.mdb" file is password protected and the password is "123" what should i do?

          Have you tried:

          m_db.Open(NULL,false,false,L"ODBC;DRIVER={MICROSOFT ACCESS DRIVER (*.mdb)};DSN='';DBQ=C:\\a.mdb;Pwd=123");

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Man who follows car will be exhausted." - Confucius

          A 1 Reply Last reply
          0
          • D David Crow

            Amir_m wrote:

            so if my "a.mdb" file is password protected and the password is "123" what should i do?

            Have you tried:

            m_db.Open(NULL,false,false,L"ODBC;DRIVER={MICROSOFT ACCESS DRIVER (*.mdb)};DSN='';DBQ=C:\\a.mdb;Pwd=123");

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "Man who follows car will be exhausted." - Confucius

            A Offline
            A Offline
            A Ms
            wrote on last edited by
            #5

            thanks

            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