FIX: Cannot Insert BLOB Data Larger Than 128k w/ SQLSetParamLast reviewed: May 1, 1997Article ID: Q136745 |
The information in this article applies to:
SYMPTOMSWhen you connect to SQL Server version 4.21a and use the SQLSetParam function to insert image or text data where the total size (such as the cbcoldef argument for SQLSetParam) is larger than 128K, you will receive the following error message from the SQL Server driver:
[Microsoft][ODBC SQL Server Driver][SQL Server] Memory request failed because more than 64 pages are required to run the query in its present form. The query should be broken up into shorter queries if possible[#703]. CAUSEThis problem only occurs when the SQLSetParam function is used.
WORKAROUNDUse the ODBC version 2.0 function SQLBindParameter instead of SQLSetParam.
STATUSMicrosoft has confirmed this to be a problem in the SQL Server Driver version 2.50.121. This problem was corrected in Service Pack 1 for SQL Server version 6.0. For more information, contact your primary support provider.
MORE INFORMATIONBefore you connect a SQL Server Driver version 2.50.121 or later to SQL Server version 4.21a, make sure that the INSTCAT.SQL file that ships with the driver has been executed on the server. The INSTCAT.SQL script upgrades the catalog stored procedures used by the driver.
|
Additional query words: sql6 odbc
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |