Some of these statements are transact-SQL and cannot be used over ODBC in the way you are doing it. You could create a procedure over ODBC which can use t-sql statements.
Of course, I'm presuming there is more to the script than what you posted as it is effectively just a select statement.
In reply to Re^3: pass MS SQL server scripts into Win32::ODBC
by mje
in thread pass MS SQL server scripts into Win32::ODBC
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |