I want to update a date field every time a record is updated, but only for the record that was updated.
I have this:
but it sets the date for all records, not just the one that was updated.
can this be done?
Information is not Knowledge, Knowledge is not Wisdom, Wisdom is not Truth, Truth is not Beauty, Beauty is not Love, Love is not Music, Music is the best.
I have this:
Code:
CREATE TRIGGER updateDateEdit ON [dbo].[Tester]
FOR UPDATE
AS
UPDATE dbo.Tester SET DATE_UPD = GETDATE()
but it sets the date for all records, not just the one that was updated.
can this be done?
Information is not Knowledge, Knowledge is not Wisdom, Wisdom is not Truth, Truth is not Beauty, Beauty is not Love, Love is not Music, Music is the best.