ALTER TRIGGER [dbo].[Tri_Insert_Update_Net] ON A AFTER INSERT AS BEGIN declare @CREATORID varchar(40),@SENDTIME datetime,@SENDLEVEL smallint,@RF_ID int select @CREATORID=CREATORID, @SENDTIME=SENDTIME, @SENDLEVEL=SENDLEVEL, @RF_ID=RF_ID from inserted update B set B.CREATORID=@CREATORID, B.SENDTIME=@SENDTIME, B.SENDLEVEL=@SENDLEVEL where B.Template_Id=@RF_ID END