Database Gateway for SQL Server (DG4MSQL) LENGTH Function Returns Bytes Rather Than Characters

(Doc ID 2279461.1)

Last updated on JULY 12, 2017

Applies to:

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


Using Database Gateway for MSQL (DG4MSQL) it is noted when using the Oracle LENGTH function, it maps its equivalent MS SQLfunction to DATALENGTH.

Looking at HS_CLASS_CAPS, the ORACLE LENGTH function is mapped to MSSQL
DATALENGTH for 'MSSQL12.'. Previously, with HSODBC in version
9.2 and the SQL Server ODBC driver used at that version it mapped to MS SQL LEN
(in 'ODBC9.')


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