DOC: ODBC Driver Manager Does Not Convert SQL Types Based on the Nature of the Driver (325243)
The information in this article applies to:
- Microsoft Data Access Components 2.0
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
This article was previously published under Q325243 SUMMARY
When a Unicode application calls the SQLBindParameter function with the SQL_WCHAR SQL type, the ODBC Driver Manager does not convert the SQL type to SQL_CHAR before it passes to an ANSI driver. However, the ODBC Driver Manager does convert the C type to SQL_C_CHAR in this scenario. This is by design.
The ODBC Programmer's Reference: Unicode Data Web site incorrectly states:
If an application working with a non-Unicode driver binds to SQL_WCHAR, the Driver Manager will map the SQL_WCHAR data to SQL_CHAR.
Modification Type: | Major | Last Reviewed: | 5/28/2003 |
---|
Keywords: | kbdocerr kbprb KB325243 |
---|
|