in reply to DBD::ODBC error

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.

Replies are listed 'Best First'.
Re^2: DBD::ODBC error
by jfroebe (Parson) on Oct 07, 2005 at 22:00 UTC

    Actually... the go has nothing to do with Transact-SQL. It just happened to be the token that isql used to identify the end of a batch. Similar to MySQL's ;.

    Jason L. Froebe

    Team Sybase member

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1