I have trigger UPDATETRIGGER on table TEST,
It was written to get called when the TEST table is updated.
Now in this UPDATETRIGGER is updating a column of the same TEST table.
Will this be recursive?
My trigger and table is in MS SQL database. From the table values i see that it is not happening such way could any one explain please.
USE [TESTING]
GO
/****** Object: Trigger [dbo].[UPDATETRIGGER] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[UPDATETRIGGER] on [dbo].[TEST]
FOR UPDATE
AS
UPDATE dbo.TEST
SET lastEditedDate=GetDate()
FROM INSERTED newdata
WHERE TEST.MasterK = newdata.MasterK