in reply to How can I connect my perl script to an Access 2010 (.accdb) file?
use DBI; use DBD::ODBC; my $DBFile= q(TestLog.mdb); if (-e $DBFile){ print "Using existing database:$DBFile\n"; } my $DSN = "driver=Microsoft Access Driver (*.mdb);dbq=$DBFile"; my $dbh = DBI->connect("dbi:ODBC:$DSN", undef,undef) or die "$DBI::err +str\n";
I hope life isn't a big joke, because I don't get it.
-SNL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I connect my perl script to an Access 2010 (.accdb) file?
by will_danger (Initiate) on Jun 03, 2012 at 02:06 UTC | |
by will_danger (Initiate) on Jun 03, 2012 at 03:59 UTC | |
by afoken (Chancellor) on Jun 03, 2012 at 15:44 UTC |