gojohnnygogogogo
Programmer
hello,
I am trying to add a trigger so when a record is inserted, updated or deleted from one table, it will insert the record into another table.
how can I do something like this.
INSERT INTO Mutations
(AddDate, Prov, Forename, Surname, Sess, SessConf, TermID)
VALUES (GETDATE(), EY.Prov, EY.Forename, EY.Surname, EY.Sess, EY.Sessconf, EY.TermID)
where EY is the table where the insert/update or delete will take place.
thank you.
I am trying to add a trigger so when a record is inserted, updated or deleted from one table, it will insert the record into another table.
how can I do something like this.
INSERT INTO Mutations
(AddDate, Prov, Forename, Surname, Sess, SessConf, TermID)
VALUES (GETDATE(), EY.Prov, EY.Forename, EY.Surname, EY.Sess, EY.Sessconf, EY.TermID)
where EY is the table where the insert/update or delete will take place.
thank you.