ODBC Connection - Receiving SQL Errors
Hello,
I have established an ODBC connection with our client based on credentials they provided. The test connection was successful and after using the Link Table wizard I can now see the client's tables and properties. However when we try to execute a query in IRIS we are getting error code -226. I'm trying to determine if this could be just a simple setting problem in IRIS or something with the client.
We have tried with PostgreSQL as well as with TSQL. Same result for each.
Has anyone seen this error before and could it be pointing me in a certain direction? Documentation on the error is sparse at best.
Many thanks!
Jerry Petrole
Five Points Technology Group
the second line of the error msg tells you that SQLserver raised error 102
This error occurs when Adaptive Server detects a syntax error in a Transact-SQL® command or query. This error can occur when: A keyword is misspelled. ... You used a variable for a database name and your query contains a parser error; error 102 is raised because the batch was never executed.
from:
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc00729.1500/html/errMessageAdvRes/CHDGFCCJ.htm
suggestion: Check the SQL-name of the generated class samples.people
Also try putting brackets around the top number of rows, Jerry, i.e.: TOP (100).
I've known this to be a problem for me with linked tables.
Thanks Neil. This turned out to be the solution!