http://www.perlmonks.org?node_id=1223734


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.