Non-Oracle Varchar(2000) Column Returned as a LONG Using DG4ODBC With a Unicode RDBMS

(Doc ID 1324284.1)

Last updated on JANUARY 18, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1 to 11.2.0.2 [Release 11.2]
Oracle Database Gateway for SQL Server - Version 12.1.0.1 to 12.1.0.1 [Release 12.1]
Information in this document applies to any platform.

Symptoms

With the following setup -

Windows

SQL*Server
DG4ODBC 11.2.0.2

Redhat Linux 4, 64-bit.

10.2.0.4 with character set US7ASCII
10.2.0.4 with character set UTF8

A select of a SQL*Server varchar(2000) column is returned as VARCHAR2 when selected from the US7ASCII RDBMS but as a LONG when selected from the UTF8 RDBMS.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms