in reply to How to connect MS Access Database?

Try this:

my $db = "/home/test/a.mdb"; my $DSN = "driver=Microsoft Access Driver (*.mdb);dbq=$db"; my $dbh = DBI->connect("dbi:ODBC:$DSN",'','') or die "Can't connect to $DSN $DBI::errstr\n";

Replies are listed 'Best First'.
Re^2: How to connect MS Access Database?
by pysome (Scribe) on Mar 28, 2008 at 04:14 UTC
    Thanks. But the error msg is same as before.:-(

      Get a shell and report back what these commands say (dont type the $ ;-)

      $ odbcinst -q -d $ odbcinst -j
        The Output:
        $ odbcinst -q -d odbcinst: SQLGetPrivateProfileString failed with . <br > $ odbcinst -j unixODBC 2.2.12 DRIVERS............: /usr/local/etc/odbcinst.ini SYSTEM DATA SOURCES: /usr/local/etc/odbc.ini USER DATA SOURCES..: /home/test/.odbc.ini
        all the three ini file is empty:(
        sh.exe": odbcinst: command not found sh.exe": odbcinst: command not found am gettign above. please help me to connecr access DB.