The information in this article applies to:
BUG# ODBCDBASE: 2064 (1.01.1928) SYMPTOMS
The ODBC Access driver gives a "data truncated" error (SQLSTATE 01004) when
you try to update a memo field with a literal such that the total length of
the updated field is greater than 255 characters. Furthermore, the memo
field is truncated to 255 characters.
SQLExecDirect will return the "data truncated" with SQLSTATE 01004; only 35
of the 40 chars get written to the table. Further attempts to increase the
size of the memo field will fail with the same error message. The Access
driver will not let you increase the size of the memo field to beyond 255
chars via updates using literals.
WORKAROUNDUse parameter markers in the update statement and pass the memo field value using SQLSetParam. STATUSMicrosoft has confirmed this to be a problem in the Access Driver version 1.01.1928. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. Additional query words: 1.01.1928 ODBC ACCESS
Keywords : |
Last Reviewed: August 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |