On Aug 31, 2004, at 4:15 PM, Rearick, Kenneth N. wrote:
Is there anyway to see the errors that the DBI:ODBC is generating when the application is being run from the server? Any ideas why the ODBC connect is failing?
$dbh = DBI->connect("DBI:ODBC:$SERVER", $USER, $PASSWORD);
You can put catch errors like:
use CGI::Carp qw(fatalsToBrowser);
$dbh = DBI->connect("DBI:ODBC:$SERVER", $USER, $PASSWORD) || croak "Database connection failed: $DBI::errstr";
More generally, getting to know your server log is very important. I'm not sure where it is, but on *nix it is typically called error_log and is in the httpd directory (which could be in different places).
Sean
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>