Something like this - I am using dummy names - use your real table name etc
CREATE TRIGGER dbo.YourTableUpdateTrigger
ON YourTable FOR UPDATE, INSERT
UPDATE INSERTED SET updated = GETDATE();Just one caveat. Run the following on your database to make sure that recursive triggers is OFF on your database. It is off by default, so it likely is, but please do check.
EXEC sp_dboption 'YourdatabaseNameHere', 'recursive triggers'