"be consistent" | |
PerlMonks |
Connect with DBI to Access 2007by cfreak (Chaplain) |
on Apr 15, 2008 at 16:51 UTC ( [id://680575]=perlquestion: print w/replies, xml ) | Need Help?? |
cfreak has asked for the wisdom of the Perl Monks concerning the following question: I'm trying to connect to an Access database file on my local machine. I did this long ago with an older version of Access with no troubles but I can't seem to get it to work this time. Here's the code:
But all I get is "Data source name not found and no default driver specified (SQL-IM002)". I google this error and get basically that the file or the driver is wrong. But I've verified I have this driver (I've also tried it as Microsoft Access Driver (*.mdb) and the file is definitely there. Basically I've wasted many hours on this now and I'm hoping someone has a solution! Thanks in advance Update I got it to work using a DSN in the Data Sources console. Still not exactly what I want since reading the docs shows I should be able to do it without a DSN. Good enough for now, but if someone has done it without a DSN, please reply and let me know what I'm doing wrong. Thanks
Back to
Seekers of Perl Wisdom
|
|