Her er en måde at bruge en I STEDET FOR trigger.
CREATE TRIGGER MyTrigger ON MyTable INSTEAD OF INSERT AS
INSERT MyTable(col1, [other columns])
SELECT UPPER(i.col1)
, i.[other columns]
FROM Inserted i
Her er en måde at bruge en I STEDET FOR trigger.
CREATE TRIGGER MyTrigger ON MyTable INSTEAD OF INSERT AS
INSERT MyTable(col1, [other columns])
SELECT UPPER(i.col1)
, i.[other columns]
FROM Inserted i