I see some other problems with your code, but as to your specific question: you need to remove the go command separator. It's specific to Transact-SQL, and the ODBC driver to SQL Server doesn't handle it.
In reply to Re: DBD::ODBC error
by VSarkiss
in thread DBD::ODBC error
by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |