I am trying to update a field of a newly inserted record by using an
insert trigger. For example:
Table has 3 fields:
MyTable:
ID (int, Identity), Integer1(int), Integer2(int)
INSERT INTO MyTable (Integer1) VALUES (20)
And then on the trigger have the Integer2 column be set to Integer1 +
10. Everything I have seen mentions that an Insert trigger can not
modify the data that has just been inserted. Can anyone help me with
this? I would be glad to clarify if needed.
Thanks,
Pete
insert trigger. For example:
Table has 3 fields:
MyTable:
ID (int, Identity), Integer1(int), Integer2(int)
INSERT INTO MyTable (Integer1) VALUES (20)
And then on the trigger have the Integer2 column be set to Integer1 +
10. Everything I have seen mentions that an Insert trigger can not
modify the data that has just been inserted. Can anyone help me with
this? I would be glad to clarify if needed.
Thanks,
Pete
Comment