#83 Couldn't open database

open
nobody
libmdb (15)
5
2005-05-09
2005-05-09
Adriano Bonat
No

All the operations that I'm trying to do in my MDB file
with mdbtools are resulting in 'Couldn't open database'.

I'm looking in 'file.c' source code of libmdb and found
that the problem is in this part of mdb_open():

if (mdb->pg_buf[0] != 0) { // ...

Enabling the debug code bellow in mdb_read_pg()
fprintf(stderr, "read page %d type %02x\n", pg,
mdb->pg_buf[0]);

prints:
read page 0 type 01

I tried to open the MDB file in MS Access 2000 and it
says that this file is from an older MS Access, tried
too in Access 97 and it says about a MS 16 bits
subsystem, I don't know why this.

Discussion

  • Brian Bruns
    Brian Bruns
    2005-09-10

    Logged In: YES
    user_id=11673

    This could be an Access 2.0 file. MDB Tools does not
    support JET2 and probably will not (too much work for too
    little return), and the format is quite a bit different as
    well. We will happily accept patches if someone wants to
    try, however.