Good afternoon colleagues I have this trigger to insert a record but only if the teststatus field changes, but even if there are other fields that are updated I still insert the record someone knows why
create trigger trTestStatusInsertarAct on test
after update
as
begin
IF UPDATE (TestStatus)
begin
insert into estadoproceso (ID ,proceso , TestStatus ,Engineer,FirstDate)
select ID ,proceso , TestStatus ,Engineer,GETDATE()
from inserted
end
end