Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting into archive table and deleting from live table SQL Server

Status
Not open for further replies.

abhi1024

Programmer
Dec 20, 2003
55
US
How is it possible in SQL Server 2000 to insert data into an archive table and then delete it from the live table. I need to do this every month end moving data into archive and then deleting it from live table.

Could some body please help
Thanks
 
Can you provide us with more infomation? We would need to see you table structure to offer some advice.

If you have a date column in your table this shouldn't be to difficult.

- Paul
10qkyfp.gif

- If at first you don't succeed, find out if the loser gets anything.
 
I am looking as to should I have a DTS , a stored procedure or a trigger for doing all this. All i need to do ia run a query on two live tables A and B. If a unique value is in table A and not in B, the insert into the archive table and delete from the live table
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top