Click here to Skip to main content
15,922,894 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

We use sql server 2008 database and c# windows application.We use for 10 years same database so increased in size of database.I think that we have received the necessary measures in Software To speed up database operations.We do not have too much experience in the sql server management.For example, We think create the archive database.

1.We backup current database,
2.delete all data from the current database used to create a blank database.

But to achieve this with the old and new data will need to open two connection.

Is there an application in SQL Server management for database archive ?

How do Companies working with large databases find a solution to this problem by SQL Server?

Thanks in advices.
Posted

1 solution

You need to define the archival criteria as to which data or how old data you want to archive. Now either you can move this data to a separate database or to a separate file group. In first scenario you would have to connect to two Dbs and in the latter you don't have to do that. Once this purge is done run all your indexes and use dbcc shrinkfile to compact all the files. These links can provide you some more useful information:
http://vyaskn.tripod.com/sql_archive_data.htm[^]
http://www.mssqltips.com/sqlservertip/1121/archiving-data-in-sql-server/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900