Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
FIX: Update on a Table with INT and BIT Columns May Zero Out INT Columns
Article ID: 294872 - View products that this article applies to.
This article was previously published under Q294872
BUG #: 352839 (SHILOH_BUGS)
A table that was created with int columns, which appear somewhere after a bit column, may have the int columns zeroed out when other columns in the table are updated.
To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/290211/EN-US/ )INF: How to Obtain the Latest SQL Server 2000 Service Pack
To work around this problem, either:
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.
To reproduce the problem, use the code that follows.
Removing any of the columns or changing the data types of the BIT columns prevents the problem from occurring. In the following example the integer columns are set to zero even though they are not included in the SET clause of the update.