CREATE TRIGGER [UPDATE] ON [dbo].[master_table] FOR UPDATE AS --Is the key field updated IF UPDATE(id) BEGIN declare @old_id as int declare @new_id as int --Before update set @old_id = (select id from deleted) --After update set @new_id = (select id from inserted) --Update child table update child_table set id = @new_id where id = @old_id END GO