in reply to IIS-CGI-DBI Errorless Errors

You have RaiseError set, which in the Unix world, would mean any error from DBI will go to stderr and with Apache they would end up in the apache error log (but in any case, if there were a problem with the DBI->connect(), your example would die before it printed any DBI error to your logfile). I don't know where error output ends up on IIS, but I would try something like this to make them go where you want them to:
eval { my $dbh=DBI->connect("dbi:ODBC:$DSN",'USER','PASSWORD',{ RaiseError => 1, AutoCommit => 1, PrintError => 0 } ); # More database stuff create statements, execute }; if ($@) { print LOG $@; exit; } print LOG "Good\n";

Replies are listed 'Best First'.
Re: IIS-CGI-DBI Errorless Errors
by Reverend Phil (Pilgrim) on Aug 08, 2002 at 04:53 UTC
    Hrm.. good point. I know little about the database parameters used there.. I looked 'em up once, and have copied them in all of the databases I've used w/out problems. Nothing mission critical, I should point out =) I'll try passing the connect through an eval like you suggest tomorrw when I get to work. Hopefully that will shed some light.
    -=rev=-
Re: IIS-CGI-DBI Errorless Errors
by Reverend Phil (Pilgrim) on Aug 08, 2002 at 13:40 UTC
    Thank you, kind monk. You've brought me to the world of Viewable Errors. From here, I expect to secure passage to the great Rock Candy Mountain of Successful CGI Programming.
    -=rev=-