in reply to Catch connection error MSSQL
I have not tested this with MSSQL, only MySQL but you should be able to just use RaiseError => 0 and then check $DBI::errstr instead of $@. Note the difference between this and $dbh->errstr which will not work if $dbh is undef for whatever reason.
-- FloydATC
I got 99 problems, most of them have to do with printers.
|
---|
In Section
Seekers of Perl Wisdom