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. error trying to open my database 'Unrecongized database format'

error trying to open my database 'Unrecongized database format'

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

    I'm using an access database with VC6. My program has been working well until now. I get the message 'Unrecognized database format' and then the path. I presume that I have a corrupt database and I have tried to repair it but I just get the same message. Does anybody have any suggest how I can repair it, view or extract the data. I did have the same problem about a month ago, but I was able to repair it. Can anybody suggest why this is happening == I used CDaoDatabase to extract tables list in .mdb file Plz Help . It is very Urgent:confused: Praveen :C

    S M 2 Replies Last reply
    0
    • P parims

      I'm using an access database with VC6. My program has been working well until now. I get the message 'Unrecognized database format' and then the path. I presume that I have a corrupt database and I have tried to repair it but I just get the same message. Does anybody have any suggest how I can repair it, view or extract the data. I did have the same problem about a month ago, but I was able to repair it. Can anybody suggest why this is happening == I used CDaoDatabase to extract tables list in .mdb file Plz Help . It is very Urgent:confused: Praveen :C

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

      parims wrote: but I was able to repair it. So you where able to successfully repair the db right? Did you follow up with a compact db? Question do you have blob (i.e. “memo”, “OLE Object”) columns? Those are the biggest reason I have seen a db get corrupted. If possible change the design to eliminate those types of columns or create your own row locking mechanism so people can’t access the same row at the same time.


      DEBUGGING : Removing the needles from the haystack.

      1 Reply Last reply
      0
      • P parims

        I'm using an access database with VC6. My program has been working well until now. I get the message 'Unrecognized database format' and then the path. I presume that I have a corrupt database and I have tried to repair it but I just get the same message. Does anybody have any suggest how I can repair it, view or extract the data. I did have the same problem about a month ago, but I was able to repair it. Can anybody suggest why this is happening == I used CDaoDatabase to extract tables list in .mdb file Plz Help . It is very Urgent:confused: Praveen :C

        M Offline
        M Offline
        Manfred Staiger
        wrote on last edited by
        #3

        I think you problem is that you are using ACCESS 2000 or newer (that means Jet Engine 4.x). Then you need to trigger the use of DAO 3.6 instead of DAO 3.5 which is the default of the MFC DAO classes in VS6. If you use MFC in a shared DLL, you can easily resolve this problem by putting the line: AfxGetModuleState()->m_dwVersion = 0x0601; into your code before you call AfxDaoInit(). Hope this helps MS

        S 1 Reply Last reply
        0
        • M Manfred Staiger

          I think you problem is that you are using ACCESS 2000 or newer (that means Jet Engine 4.x). Then you need to trigger the use of DAO 3.6 instead of DAO 3.5 which is the default of the MFC DAO classes in VS6. If you use MFC in a shared DLL, you can easily resolve this problem by putting the line: AfxGetModuleState()->m_dwVersion = 0x0601; into your code before you call AfxDaoInit(). Hope this helps MS

          S Offline
          S Offline
          S Douglas
          wrote on last edited by
          #4

          Forgot all about the version issues. Good one...


          DEBUGGING : Removing the needles from the haystack.

          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