Microsoft KB Archive/305042

= FIX: UPDATE After ALTER TABLE Can Result in Unexpected Data to Added Columns =

Article ID: 305042

Article Last Modified on 10/9/2003

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition

-



This article was previously published under Q305042



BUG #: 354988 (SHILOH_BUGS)

BUG #: 355163 (SHILOH_BUGS)



SYMPTOMS
Columns added to a table with ALTER TABLE can appear to have unexpected data if a subsequent UPDATE is executed excluding the new added columns.



RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

Hotfix
NOTE: The following hotfix was created prior to Microsoft SQL Server 2000 Service Pack 2.

The English version of this fix should have the following file attributes or later:   Version      File name      Platform ---  8.00.426     s80426i.exe    Intel NOTE: Due to file dependencies, the most recent hotfix or feature that contains the above files may also contain additional files.



WORKAROUND
Supply new values for added columns when executing an UPDATE after the new columns are added with ALTER TABLE.

If you determine that you have encountered this problem, update new correct values or NULL for the added columns.



STATUS
Microsoft has confirmed this to be a problem in SQL Server 2000. This problem was first corrected in Microsoft SQL Server 2000 Service Pack 2.

Keywords: kbbug kbfix kbsqlserv2000presp2fix KB305042

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.