Article ID: 152709
Article Last Modified on 11/14/2003
APPLIES TO
- Microsoft SQL Server 4.21a Standard Edition
- Microsoft SQL Server 6.0 Standard Edition
- Microsoft SQL Server 6.5 Standard Edition
This article was previously published under Q152709
SYMPTOMS
Update of a BLOB data causes SQL Server 2.65.0201 driver to stop with a syntax error. When an update statement is sent to the driver, it generates an invalid statement that results in the syntax error. This happens during an update of a large BLOB data (larger than 64K).
STATUS
Microsoft has confirmed this to be a problem in the Microsoft SQL Server ODBC driver version 2.65.201. This problem has been corrected in U.S. Service Pack 1 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.
MORE INFORMATION
If the SQL Server 4030 trace is turned on, the 2.65.0201 SQL server driver generates the following syntax when an update statement of BLOB data is issued:
SELECT TEXTPTR(imagecol) FROM imagetest where intcol=update imagetest set imagecol=0x00
This is an invalid syntax.
This does not happen in 2.50.0121 (6.0 drivers). They generate:
SELECT TEXTPTR(imagecol) FROM imagetest where imagecol LIKE 0x000000
WRITETEXT BULK imagetest.imagecol 0xa
Additional query words: odbc Update BLOB data
Keywords: kbbug kbfix KB152709