try this:create table tA(id int identity(1,1),importdate datetime)create table tB(id int identity(1,1),SECONDS INT)create table tC(id int identity(1,1),importdate datetime)create trigger DML_Trig_Tb_Tcon tAafter insert, updateasinsert into tBselect 7200declare @last_date_tA datetimeset @last_date_tA = ''select top 1 @last_date_tA = importdate from tA order by id descinsert into tCselect dateadd(s, 7200, @last_date_tA)goinsert into tA select '2010/07/19'select * from tAselect * from tBselect * from tCdrop table tAdrop table tBdrop table tC