FIX: Updating a Text Column Results in a Table ScanID: 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 : kbprg SSrvProg SSrvTran_SQL kbbug2.50.0121 kbbug6.00
Version : 2.5.0121 6.0
Platform : WINDOWS
Issue type :
Last Reviewed: April 19, 1999