is the Modified_Date column in the same table that you want to put the trigger on or is it an "audit table"?If the table is always written to via a stored procedure then it would be better to incorporate the logic in the SP.PLEASE read up on triggers in Books OnlineAssuming it is the same table here is the basic idea:create table myTable (pk int identity, i int, mod_date datetime null)gocreate trigger tr_myTable_insUpd on myTable after insert, updateasbegin update mt set mod_date = getdate() from inserted i inner join myTable mt on mt.pk = i.pkendgoinsert myTable (i)select ifrom ( select 10 i union all select 20 union all select 30 ) dorder by iwaitfor delay '00:00:01.000'update myTable set i = 40 where pk = 2select * from myTablegodrop table myTableoutput:pk i mod_date ----------- ----------- ------------------------------------------------------ 1 10 2008-05-22 20:00:08.810 2 40 2008-05-22 20:00:09.843 3 30 2008-05-22 20:00:08.810
Be One with the OptimizerTG