Your ErrorHandler routine does not seem to be connecting to SQL. It is just formating the error message returned by SQL and printing the output. You could have something like:
return if $msg =~ /SQL-22003/;right before the comment "#Strip out...". The error will not be printed, but I doubt it will solve your underlying problem.
In reply to Re: ODBC Sql Server error handling
by Laurent_R
in thread ODBC Sql Server error handling
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |