jryan has asked for the wisdom of the Perl Monks concerning the following question:
In an application I'm writing, I need to connect to an MS Access database (.mdb) thats on a network drive. I created an ODBC DSN just fine, wrote my chunk of code using DBI and DBD::ODBC, tested it from the command line, and everything seemed to work fine. However, when I try to use this same code from within the mod_perl application, I get:
DBI connect('perl_dbi','',...) failed: [Microsoft][ODBC Microsoft Acce +ss Driver] '(unknown)' is not a valid path. Make sure that the path +name is spelled correctly and that you are connected to the server on + which the file resides. (SQL-HY024)(DBD: db_login/SQLConnect err=-1)
Thinking that Apache was simply unable to handle paths on network drives, I separated the section into a standalone script and tried to shell out to it. However, I still get the same error, which doesn't make any sense at all to me since this script works fine by itself on the command line. I've tried changing the connect line to specify the file to connect to explicitly, but that still doesn't work.
I'm completely lost. Can anyone help?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Problem with Apache, DBD::ODBC, MS Access, and backticks.
by BrowserUk (Patriarch) on Sep 15, 2004 at 00:30 UTC | |
by jryan (Vicar) on Sep 15, 2004 at 15:24 UTC | |
Re: Problem with Apache, DBD::ODBC, MS Access, and backticks.
by jryan (Vicar) on Sep 15, 2004 at 20:50 UTC | |
by Anonymous Monk on Oct 21, 2008 at 13:45 UTC | |
Re: Problem with Apache, DBD::ODBC, MS Access, and backticks.
by jZed (Prior) on Sep 15, 2004 at 17:03 UTC |