Background documentationUnicode Support Locate this document in the navigation structure

 

The SAP MaxDB ODBC driver supports Unicode. As of versions 7.4.03.32 and 7.5.00.11 respectively, two ODBC drivers are available per version.

SAP MaxDB ODBC Driver

Operating System

ODBC Driver (ASCII)

ODBC Driver (Unicode)

Microsoft Windows

sdbodbc.dll

sdbodbcw.dll

Unix and Linux

libsdbodbc.a|so

libsdbodbcw.a|so

The ASCII version of the ODBC driver always connects to the database kernel via ASCII.

The Unicode version of the ODBC driver connects to ASCII database kernels via ASCII and with Unicode database kernels via UCS2.

To process Unicode data, the ODBC driver internally uses UCS-2 (2 bytes). On platforms that use 4 bytes for WCHAR_T data, when you compile with the GNU C compiler, you can use an option to force processing of WCHAR_T data with 2 bytes.

Example Example

gcc -fshort-wchar [...]

End of the example.

Applications that do not require the functions of a driver manager can be linked statically with the ODBC driver.

SAP MaxDB ODBC Driver: Functions for Accessing Unicode Data

SQLBrowseConnectW

SQLColAttributesW

SQLColAttributeW

SQLColumnPrivilegesW

SQLColumnsW

SQLConnectW

SQLDataSourcesW

SQLDescribeColW

SQLDriverConnectW

SQLDriversW

SQLErrorW

SQLExecDirectW

SQLForeignKeysW

SQLGetConnectAttrW

SQLGetConnectOptionW

SQLGetCursorNameW

SQLGetDescFieldW

SQLGetDescRecW

SQLGetDiagFieldW

SQLGetDiagRecW

SQLGetInfoW

SQLGetStmtAttrW

SQLGetTypeInfoW

SQLNativeSqlW

SQLPrepareW

SQLPrimaryKeysW

SQLProcedureColumnsW

SQLProceduresW

SQLSetConnectAttrW

SQLSetConnectOptionW

SQLSetCursorNameW

SQLSetDescFieldW

SQLSetStmtAttrW

SQLSpecialColumnsW

SQLStatisticsW

SQLTablePrivilegesW

SQLTablesW