TeaAddictedGeek
Programmer
Ok, SQL gurus, I need you. My skills are okay but this is something a bit out of my usual scope:
In SQL Server 2005, I need to be able to create a trigger that runs every two hours and does a insert into table1 select statement from table2 then deletes from table2. The guts of what this has to do is cake and easily done within a normal stored proc; I've just never done triggers in SQL that I can recall. In fact, I think the last one I may have worked on was back in SQL Server 7.0.
Thanks in advance!
"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs."
-Joseph Weizenbaum
In SQL Server 2005, I need to be able to create a trigger that runs every two hours and does a insert into table1 select statement from table2 then deletes from table2. The guts of what this has to do is cake and easily done within a normal stored proc; I've just never done triggers in SQL that I can recall. In fact, I think the last one I may have worked on was back in SQL Server 7.0.
Thanks in advance!
"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs."
-Joseph Weizenbaum