BUG: Cannot Insert BLOB Data Sized Between 64K and 128K
Article ID: 125306
Article Last Modified on 7/27/2001
APPLIES TO
- Microsoft Open Database Connectivity 2.0
This article was previously published under Q125306
BUG# Addon_Bugs: 10577 (2.00.1912)
SYMPTOMS
When SQLSetParam is used to insert image/text data where the total size
(such as, the cbcoldef argument for SQLSetParam) is between 64K and 128K,
you may receive the following SQLState 01004 message from the SQL Server
driver:
Data Truncated.
NOTE: This message is received on SQLExecDirect, SQLExecute, or SQLPutData,
depending on whether data-at-execution parameter was used or not.
WORKAROUND
Use the ODBC version 2.0 function SQLBindParameter instead of SQLSetParam.
This problem only occurs when SQLSetParam is used.
STATUS
Microsoft has confirmed this to be a problem in the SQL Server driver
version 2.00.1912. We are researching this problem and will post new
information here in the Microsoft Knowledge Base as it becomes available.
Additional query words: 2.00.1912 Windows NT kbbug2.00.1912 kbprg
Keywords: kbbug KB125306