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. CDatabase error

CDatabase error

Scheduled Pinned Locked Moved C / C++ / MFC
helpdatabasequestion
4 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.
  • K Offline
    K Offline
    kk tvm
    wrote on last edited by
    #1

    Hi friends I am using CDatabase class to open Access database in my program. Sometimes it shows an error "Specified driver could not be loaded due to system error 1114 (MICROSOFT ACCESS DRIVER (*.mdb))". How can i resolve this problem thanks in advance

    -kk.tvm-

    G 1 Reply Last reply
    0
    • K kk tvm

      Hi friends I am using CDatabase class to open Access database in my program. Sometimes it shows an error "Specified driver could not be loaded due to system error 1114 (MICROSOFT ACCESS DRIVER (*.mdb))". How can i resolve this problem thanks in advance

      -kk.tvm-

      G Offline
      G Offline
      Game point
      wrote on last edited by
      #2

      i thinks its come from u r not disposing the db object .not exactly .. could u write your ConnectionString ...

      :~ Failure is Success If we learn from it!!:~

      K 1 Reply Last reply
      0
      • G Game point

        i thinks its come from u r not disposing the db object .not exactly .. could u write your ConnectionString ...

        :~ Failure is Success If we learn from it!!:~

        K Offline
        K Offline
        kk tvm
        wrote on last edited by
        #3

        Hi Connection string as follows m_strDBConnect = "ODBC;DRIVER={MICROSOFT ACCESS DRIVER (*.mdb)};DSN='';DBQ=c:\abc.mdb" thanks in advance

        -kk.tvm-

        G 1 Reply Last reply
        0
        • K kk tvm

          Hi Connection string as follows m_strDBConnect = "ODBC;DRIVER={MICROSOFT ACCESS DRIVER (*.mdb)};DSN='';DBQ=c:\abc.mdb" thanks in advance

          -kk.tvm-

          G Offline
          G Offline
          Game point
          wrote on last edited by
          #4

          i dont know ..why that error comes ..any way u try this .. CDatabase dbStar; CString strConnection = _T("Driver={Microsoft Access Driver (*.mdb)};Dbq=D:\\Sample.MDB;Uid=;Pwd=;"); if ( dbStar.Open(_T(""),false,true,strConnection,true)) { // Do Something().. } and tell me the result ...?

          :~ Failure is Success If we learn from it!!:~

          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