FIX: Update of BLOB Data w/SQL Server 2.65.0201 Driver Stops

ID: Q152709


The information in this article applies to:
  • Microsoft SQL Server versions 4.2x, 6.0, 6.5


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).

The syntax error generated is
Incorrect syntax near the keyword 'UPDATE'.
State:37000, Native:156, Origin:[Microsoft][ODBC SQL Server
Driver][SQL Server]

Line 1 "Incorrect syntax near '='
State:37000, Native:170, Origin:[Microsoft][ODBC SQL Server
Driver][SQL Server]


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 :
Version : 6.5.201
Platform : WINDOWS
Issue type :


Last Reviewed: March 26, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.