Create TRIGGER [dbo].[ItemsUpdate] ON [dbo].[Items]
AFTER Update
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for trigger here
insert into ItemsLog(id,name,[date],[function])
select id,name,getdate(),'Update'
from inserted
END
|