Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: How to connect MS Access Database?

by tachyon-II (Chaplain)
on Mar 28, 2008 at 04:06 UTC ( [id://676897]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://676897]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found