mifflin has asked for the wisdom of the Perl Monks concerning the following question:
But I would like connect to the database without having to register the database file. The ODBC.pm file indicates that this is possible and offers a small snippet of code as an example...$dbh = DBI->connect('dbi:ODBC:DYC', '', '');
The thing to the right of the "dbq=" is what is confusing me.my $DSN = 'driver=Microsoft Access Driver(*.mdb);dbq=\\\\cheese\\g$\\p +erltest.mdb'; my $dbh = DBI->connect("dbi:ODBC:$DSN", '','') or die "$DBI::errstr\n";
edited: Mon Jul 28 18:31:00 2003 by jeffa - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD::ODBC connection prob
by Rich36 (Chaplain) on Mar 04, 2003 at 22:08 UTC |