in reply to Lost over DBI in perl
Edit: My bad. The first call was commented :P
The error you're getting now (Datasource not found) is because ODBC requires you to register database-connections with the system.
The connectionstring for ODBC is this:
$DSN is the name of the datasource you registered with the system. Under *nix, this is /etc/odbc.ini. I have no idea what file is used in lion.$dbh = DBI->connect("dbi:ODBC:$DSN", $username, $password, $hr_options +) or die $DBI::errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Lost over DBI in perl
by sdyates (Scribe) on Aug 22, 2011 at 20:42 UTC |