Unicode Support

The SQL Server Wire Protocol driver maps the Microsoft SQL Server data types to Unicode data types as shown in the following table:

SQL Server Data Type
Mapped to. . .
nchar
SQL_WCHAR
ntext
SQL_WLONGVARCHAR
nvarchar
SQL_WVARCHAR
nvarchar(max)1
SQL_WLONGVARCHAR
sysname
SQL_WVARCHAR
xml1
SQL_WLONGVARCHAR
1 Microsoft SQL Server 2005 only.
 

The driver supports the Unicode ODBC W (Wide) function calls, such as SQLConnectW. This allows the Driver Manager to transmit these calls directly to the driver. Otherwise, the Driver Manager would incur the additional overhead of converting the W calls to ANSI function calls, and vice versa.

See "UTF-16 Applications on UNIX and Linux" for related details. Also, Refer to "Internationalization, Localization, and Unicode" in the DataDirect Connect for ODBC and Connect XE for ODBC Reference for a more detailed explanation of Unicode.