Article ID: 236871 - Last Review: November 17, 2003 - Revision: 2.1 PRB: SQLColumns Return Incorrect BUFFER_LENGTH and CHAR_OCTET_LENGTHThis article was previously published under Q236871 On This PageSYMPTOMS
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.
MORE INFORMATIONSteps to Reproduce BehaviorPerform the following steps in the ODBC Test utility:
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: http://www.msdn.microsoft.com
(http://www.msdn.microsoft.com)
| Article Translations
|
Back to the top
