Microsoft KB Archive/281129

From BetaArchive Wiki
Knowledge Base


FIX: Update of Table with Large varchar Columns May Cause Access Violation

Article ID: 281129

Article Last Modified on 3/14/2006



APPLIES TO

  • Microsoft SQL Server 7.0 Standard Edition



This article was previously published under Q281129

BUG #: 56646 (SQLBUG_70)

SYMPTOMS

When you update a table that is joined to itself and that contains large varchar columns, SQL Server may generate an access violation (AV).

STATUS

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

274799 INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0


For more information, contact your primary support provider.

MORE INFORMATION

The following query generates an access violation:

create table test(col1 integer, col2 varchar(8000), col3 varchar(8000))
go
insert test values (1, replicate('b',8000), 'c')
insert test values (2,'b', replicate('c',8000))
insert test values (3,replicate('b',8000),'c')
go
update test set col2 = test2.col2, col3 = test2.col3
            from test, test test2
        where test.col1 >= test2.col1
                


Additional query words: sql70sp3fix

Keywords: kbbug kbfix KB281129