FIX: Updating a Text Column Results in a Table Scan |
Q135714
When you use the SQL Server ODBC driver version 2.50.0121 to update a text column, a table scan is performed and the update may take a very long time depending on the number of rows.
Applications that use ODBC typically call the SQLPutData API to update
text and image columns. With the new SQL Server driver, SQLPutData
internally issues the following statements to the SQL Server:
BEGIN TRAN
SET TEXTSIZE 2147483646
UPDATE <table-name> SET <text-column name>='#odbc#xxxxx' WHERE
<search condition>
SELECT TEXTPTR(<text-column name>) from <table-name> WHERE
<text-column name> LIKE '#odbc#xxxxx'
WRITETEXT BULK<table-name>.<text-column name> 0xxxxxxx WITH LOG
COMMIT TRAN Microsoft has confirmed this to be a problem in the 2.50.0121 version of the SQL Server ODBC driver. This problem was corrected in Service Pack 1 for SQL Server version 6.0. For more information, contact your primary support provider.
Additional query words: sql6 mfc
Keywords : kbprogramming
Issue type : kbbug
Technology : kbSQLServSearch kbAudDeveloper kbSQLServ600 kbODBCSearch kbODBC250
|
Last Reviewed: March 25, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |