Pedro,
What are the values of sqlcode, sqlstate and sqlerrmc after the SELECT?
These should tell you exactly what the error is.
Pedro,
What are the values of sqlcode, sqlstate and sqlerrmc after the SELECT?
These should tell you exactly what the error is.