Database driver error >>The character “ ” following “ÃãÉåÉãèmÉÄ@” is not valid<< during session execution

人走茶凉 提交于 2019-12-11 05:48:01

问题


I am getting below error at session level. kindly help me to fix this -

READER_1_1_1> RR_4035 SQL Error [
[IBM][CLI Driver][DB2/AIX64] SQL0007N The character " " following "ÃãÉåÉãèmÉÄ@" is not valid.
SQLSTATE=42601
sqlstate = 42601
Database driver error...

I have written a SQL query in source qualifier. Query is fetching data from three tables, so join is there,condition is there and sub-query is also. While validating in source qualifier, it not giving any error and even running this query in toad, it is running fine.

So why I am getting this error at session level? Is it because query has sub-queries or some connection issues with DB?

My DB is DB2.


回答1:


I'm almost certain you have an encoding issue. Your SQL is probably being encoded as UTF-8 (just by inspection of the junk in your error message), but the driver is expecting something else.

Try specifying the encoding you're using to the driver, or use the encoding that the driver expects



来源:https://stackoverflow.com/questions/9414018/database-driver-error-the-character-following-%c3%83%c3%a3%c3%89%c3%a5%c3%89%c3%a3%c3%a8m%c3%89%c3%84-is-not-valid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!