"be consistent" | |
PerlMonks |
Re: Catch connection error MSSQLby FloydATC (Deacon) |
on Oct 09, 2018 at 13:52 UTC ( [id://1223734]=note: print w/replies, xml ) | Need Help?? |
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
|
|