grax has asked for the wisdom of the Perl Monks concerning the following question:
use CGI; use DBI; $q = new CGI; $DSN = "my_database.mdb"; my $dbh = DBI->connect('DBI:ODBC:$DSN') or die "Couldn't connect to da +tabase";
This brings up an error saying
DBI->connect($DSN) failed: Microsoft ODBC Driver Manager Data source name not found and no default driver specified (SQL-IM002)(DBD: db_login/SQLConnect err=-1)
I cannot seem to get any other clues as to what is happening. As to the location of the database, it is in the same directory as the script. Please can you help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help with DBI problem!!
by mwp (Hermit) on Apr 16, 2001 at 14:11 UTC | |
|
Re: Need help with DBI problem!!
by ColtsFoot (Chaplain) on Apr 16, 2001 at 14:08 UTC | |
|
Re: Need help with DBI problem!!
by wardk (Deacon) on Apr 16, 2001 at 17:47 UTC |