Open laiwei1986 opened 7 years ago
I have the same issue running Postgres 9.4.
Any word on how to resolve this?
You must add "tds_version '5.0'" in your "CREATE SERVER" Like this
CREATE SERVER mig_server
FOREIGN DATA WRAPPER tds_fdw
OPTIONS (servername '192.168.120.130',tds_version '5.0', port '5100');
If you do not add "tds_version '5.0'", The system default "tds_version '4.2'". 4.2 version of the agreement does not allow the string length of more than 30 characters.
Thanks! I'll give it a shot.
I managed to retrieve data from SQL Server. SQL Server Version: Microsoft SQL Server 2014 (SP2-GDR) - 12.0.5207.0 (X64) PostgreSQL Version: 9.4.6 (I compiled from source code on CentOS 6.9 x64) What I tried:
I tried 9.4.6 because someone said "I succeed with 9.4 but failed in after upgrade to 9.6" in these comment.
Hope this helps.
Hi! I use Sybase and get the following error ERROR: DB-Library error: DB #: 103, DB Msg: General SQL Server error: Check messages from the SQL Server, OS #: -1, OS Msg: , Level: 15. I found that this is because the table name is longer than 30 characters. I would like to use "import schema" to solve the problem, but the problem remains.
Thank for help !