Hi all,
I have a condition where in a trigger should be invoked whenever a particular column gets updated in a table but not when any other column gets updated. Is it possible?
Hi all,
I have a condition where in a trigger should be invoked whenever a particular column gets updated in a table but not when any other column gets updated. Is it possible?
Your trigger gets invoked on any update, but you can add some checking to process data only when your column has new value.
Hi, trigger has only tree options ON INSERT, UPDATE, DELETE this means trigger will ge fired on every update command no mater what column is updated Best Regars, Iordan
A trigger gets invoked regardless of the fields changed, however you can use
IF UPDATE(mycol)
BEGIN
-- logic goes here
END
to implement logic for a specific column.
Also take a look at COLUMNS_UPDATED function too.