• yeah syntax is important here;

    you already identified that you know the a trigger should refer to the virtual inserted or deleted tables;

    the key is that the original table needs to join to inserted and/or deleted in order to properly update/

    most likely, what you want is this inside your trigger

    CREATE TRIGGER TR_Test_IU ON Test

    FOR INSERT,UPDATE

    AS

    BEGIN

    UPDATE MyTarget

    set MyTarget.Name='DIT'

    FROM Test MyTarget

    INNER JOIN INSERTED

    ON Test.ID = INSERTED.ID

    WHERE name='D'

    END --TRIGGER

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!