'Incorrect syntax near Delete'

  • Hi Team,

    Am using below trigger syntax, its showing error 'Incorrect syntax near Delete'

    CREATE TRIGGER [Test_TRG] ON CUSTOMERS

    FOR UPDATE, DELETE

    AS IF UPDATE(col1) OR DELETE(col2)

    BEGIN

    INSERT INTO users values ('0789','Sheker','WT_WRO')

    END

    Please help me

  • Please don't post multiple threads for the same question.

    No replies to this thread please. Direct replies to http://www.sqlservercentral.com/Forums/Topic1638528-391-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply