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

Last reviewed: April 8, 1997
Article ID: Q152709
The information in this article applies to:
  • Microsoft SQL Server, versions 4.21, 6.0 and 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
Version : 6.5.201
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.