Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-28500 + "String data, right truncation" when selecting nvarchar(max)

PyrocksDec 23 2010 — edited Dec 23 2010
Hi,

I was able to set up a db link from Oracle 11.2.0.1 to SQL Server 2005 using DG4ODBC.

When trying to select a column with nvarchar(max) datatype from the db link I get the following error:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}[Microsoft][SQL Native Client]String data, right truncation {01004}
ORA-02063: preceding 2 lines from SQLSERVER_DBLINK
The actual data in the column doesn't exceed 31 chars but the query still fails.

Any suggestions?
Thanks.
This post has been answered by Kgronau-Oracle on Dec 23 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 20 2011
Added on Dec 23 2010
6 comments
3,762 views