I am using SqlServer 2005. I would like to set a property (like default value, but for any change, not just inserts) that would update a date. In other words, on every update and insert, the current date would be placed in the column. How would this be achieved?
Share
Let’s suppose you have an
Atable:You can create triggers:
Which will give what you want
Here is a fiddle you can play with.