I want to make a trigger that automatically sets the date of a field when being inserted. So the trigger goes through and does something like: set tdate = getdate()
i cant get it to work through. when i try set inserted.tdate = getdate(), it wont let me. i know that oracle has a 'for each row' argument you can add to make it apply to each row being inserted, but cannot find a similar command for t-sql.
any suggestions>
i cant get it to work through. when i try set inserted.tdate = getdate(), it wont let me. i know that oracle has a 'for each row' argument you can add to make it apply to each row being inserted, but cannot find a similar command for t-sql.
any suggestions>