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.
In reply to Need help with DBI problem!! by grax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |