• that code will update all rows, instead of just what was just inserted.

    i'd do it this way instead, but i don't know the PK of the table

    CREATE TRIGGER country_Insert_Update

    ON dbo.cis111_LMccrorey_Customers

    AFTER INSERT,UPDATE

    AS

    BEGIN

    -- SET NOCOUNT ON added to prevent extra result sets from

    -- interfering with SELECT statements.

    SET NOCOUNT ON;

    Update Customers

    set Customers.Country = UPPER (INSERTED.Country)

    FROM Customers

    INNER JOIN INSERTED ON Customers.PKColumnName = INSERTED.PKColumnName

    END

    GO

    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!