-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Err] ERROR: DB-Library error: DB #: 2404, DB Msg: Buffer overflow converting characters from client into server's character set, OS #: 0, OS Msg: Success, Level: 4 #103
Comments
i find the problem |
This sounds like a character set might be incorrect somewhere. There are a few different places to check for character set mismatches when using tds_fdw: 1.) When you are using Microsoft SQL Server with a unicode character set, you need to set the 2.) The 3.) You need to set the correct character set for the database in PostgreSQL. 4.) You need to ensure that your PostgreSQL client has the proper character set. e.g. you can check with:
And you can change it with:
|
What does your freetds.conf file look like? Do you set What is the character set that the PostgreSQL database is configured to use? |
|
Can you please show what your freetds.conf looks like? |
add to freetds.conf |
@502647092 have you resolved the problem? |
Help me please, I try to access MSSQL database from a PostgreSQL database by using FreeTDS and tds_fdw, if I am excute this query "SELECT code FROM public.sap_oitt;" but always I get Error like this SQL Error [HV00L]: ERROR: DB-Library error: DB #: 20018, DB Msg: General SQL Server error: Check messages from the SQL Server, OS #: -1, OS Msg: , Level: 16 |
@bolton1643 @Arief6684 |
I am getting the same issue:
The postgres database is UTF-8:
The client encoding is UTF-8:
My freetds.conf contains:
From the freetds.log I had during the error:
I'm not sure what to try next on this. |
I'm having a similar issue any solution to this yet |
Non-printable Unicode characters 129, 141, 143, 144, and 157 are not compatible with tds_fdw. Identify where the offending characters exist then purge them. SELECT * |
We solved it by adding option 'character_set' 'UTF-8' on the foreign server options. |
Thank you! This was our solution for Aurora RDS & on-prem SQL server. To save others some googling:
|
I try to access MSSQL database from a PostgreSQL database by using FreeTDS and tds_fdw,
but i Received this error
[Err] ERROR: DB-Library error: DB #: 2404, DB Msg: Buffer overflow converting characters from client into server's character set, OS #: 0, OS Msg: 成功, Level: 4
can you help me to Solve this problem
I am a Chinese My English is not very good if you can't Understand please contact me [email protected] Thank you!
The text was updated successfully, but these errors were encountered: