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?