My Oracle Support Banner

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

Last updated on FEBRUARY 04, 2019

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.')


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.