I have a trigger that shout fire when 1 field in the record is updated. So I dug up this for a test:
As I understood this should not *ALWAYS* trigger on an update.
Can someone shed some light on this?
Code:
USE almanak;
GO
IF EXISTS (SELECT name FROM sys.objects
WHERE name = 'actie_uitgevoerd' AND type = 'TR')
DROP TRIGGER actie_uitgevoerd;
GO
CREATE TRIGGER [dbo].[actie_uitgevoerd]
ON [almanak].[dbo].[almanak_acties]
AFTER UPDATE
AS
IF ( UPDATE (a_uitgevoerd) )
BEGIN
RAISERROR ('actie is klaar', 16, 10)
END;
GO
Can someone shed some light on this?