|
Posted by AlterEgo on 01/19/07 00:54
Fad₯,
This should work for you:
create trigger MyTrigger on MyTable for insert, update
as
begin
update MyTable
set Modification = getdate()
from MyTable m
inner join inserted i on m.MyTableID = i.MyTableID
end
-- Bill
"Fad₯" <fadyay@gmail.com> wrote in message
news:1169163810.969473.16880@m58g2000cwm.googlegroups.com...
> Hello Guys!
> i have been working with oracle with quite a time. No i migrated to sql
> server 2000 and i want to create a trigger on a table.
> the trigger function has to update the Modification field to getdate()
> whenever a row is being updated.
> i tried lots of things
>
> if anyone can help i would appreciate a lot!
>
> Regards
>
Navigation:
[Reply to this message]
|