|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, June 15, 2009 12:57 PM
Points: 32,
Visits: 114
|
|
Hi members,
I have some tables in my database and in each table every month fresh data gets added to the previous data. The approximate size of the data that get added to the tables is 1.5 - 2 million records and my Project Manager wants to archive the data. She wants only 6 months of data in main table and rest of the data should be archived to respective archive tables.
Can anyone explain me how to archive the data in a table and what are the methods in archiving the data. Please suggest me along within an example and also explain me how to access that data which is archived later point of time when all my procedures initially referring to the main table.
Thanks in advance
sai
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 8:29 AM
Points: 1,243,
Visits: 1,774
|
|
If you have the enterprise version of SS2k5 you should seriously check about partitioning. (SWITCH, MERGE etc)
http://msdn.microsoft.com/en-us/library/ms345146(SQL.90).aspx
With that you will be able to move millions of rows very very quickly
|
|
|
|