FIX: Using ALTER TABLE to Change Column Type Can Result in Unexpected NULL Values on INSERT

This article was previously published under Q279296
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 236443 (shiloh_bugs)
If the column type of a table is changed by using an ALTER TABLE statement, a subsequent INSERT statement may incorrectly insert a NULL value instead of the value supplied in the INSERT statement.
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 theMicrosoft Knowledge Base:
290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack


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

The English version of this fix should have the following file attributes or later:
   Version       File name     Platform   ------------------------------------   8.00.217      S80217i.exe   Intel				
NOTE: Due to file dependencies, the most recent hotfix or feature that contains the above files may also contain additional files.
Create a new table with desired column types and copy the original table into the new table.
Microsoft has confirmed that this is a problem in Microsoft SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.

Article ID: 279296 - Last Review: 01/16/2015 21:05:17 - Revision: 3.1

Microsoft SQL Server 2000 Standard Edition

  • kbnosurvey kbarchive kbbug kbfix kbqfe kbsqlserv2000sp1fix KB279296