Traitée Problem withe below trigger

  • jeudi 9 août 2012 21:54
     
     

    hi All,

    I dont know what is the problem with the below mentioned trigger. can anyone point out the same to me.

    ALTER TRIGGER [dbo].[Update_Trigger]
        ON [dbo].[FileReport_Consolidated]
    FOR INSERT
    AS
    BEGIN

    update dbo.FileReport_Consolidated SET dbo.FileReport_Consolidated.Resolved=1  where dbo.FileReport_Consolidated.FilePath IN (SELECT A.FilePath from dbo.FileReport_Consolidated AS A LEFT OUTER JOIN dbo.FileReport_Recent AS B ON A.FilePath = B.FilePath where B.FilePath IS NULL)

    END

    I do not have clarity about when  the trigger is initiated

    1) after the table level insertion or

    2) row level insertion


Toutes les réponses