Microsoft KB Archive/70851

= BUG: IF UPDATED Returns TRUE in a Trigger =

Article ID: 70851

Article Last Modified on 2/14/2005

-

APPLIES TO


 * Microsoft SQL Server 4.21a Standard Edition

-



This article was previously published under Q70851



BUG# NT: 890 (4.2)



SYMPTOMS
After a trigger using the IF UPDATED(colName) clause was created, an attempt to update the column colName, even if the update statement does not actually affect any rows, will cause the statements in the IF UPDATED block to be executed.



CAUSE
IF UPDATED returns TRUE for columns, regardless of whether the value has been changed.



STATUS
Microsoft has confirmed this to be a problem in Microsoft SQL Server version 4.2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Keywords: kbprogramming KB70851

-

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

© Microsoft Corporation. All rights reserved.