How do I change values of a column in an insert trigger ? In Oracle I can use the following code to change the col1 value to upper case in an INSERT Trigger
. How do I do it in SQL Server ?
IF exists (select col1 from inserted where col1 is NOT NULL )
begin
:NEW.col1:= UPPER(:NEW.col1);
end