PRB: SQLColumns Return Incorrect BUFFER_LENGTH and CHAR_OCTET_LENGTH (236871)
The information in this article applies to:
- Microsoft ODBC Driver for Access 4.0
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.5
This article was previously published under Q236871 SYMPTOMS
When SQLColumns is called on a table in an Access database, the BUFFER_LENGTH and CHAR_OCTET_LENGTH values that appear to be returned are incorrect for non-UNICODE text fields. Fields of data type CHAR and VARCHAR will show these lengths as twice the value of COLUMN_SIZE. This is because Jet now stores text data in the Unicode format, which requires two bytes for every character.
STATUS
This behavior is by design.
REFERENCES
See the documentation for SQLColumns for more information on the data that this function returns.
The ODBC Test utility can be obtained from the Microsoft Data Access SDK, which comes with Visual Studio or can be downloaded from the following Web
site:
Modification Type: | Major | Last Reviewed: | 11/17/2003 |
---|
Keywords: | kbDatabase kbDriver kbJET kbpending kbprb KB236871 |
---|
|