I have a temporary table that I want to read, update another table
with the information the delete the record from the Temp table every
hour or so.
(The reason for doing this is we have an application that puts data in
table1 this has to be moved to table2 before it can be used - this
movement is done using a trigger but can not delete the entry in
table1 because the record is locked - so I creat the temporary record
and hopr to clean up later)
What is the best way to do this, I was thinking possably an agent ?
does anyone have any sample code to get me started.
Thanks
Martin
with the information the delete the record from the Temp table every
hour or so.
(The reason for doing this is we have an application that puts data in
table1 this has to be moved to table2 before it can be used - this
movement is done using a trigger but can not delete the entry in
table1 because the record is locked - so I creat the temporary record
and hopr to clean up later)
What is the best way to do this, I was thinking possably an agent ?
does anyone have any sample code to get me started.
Thanks
Martin
Comment