• subscribe
October 19, 2004 12:00 AM

Archiving User Activity

SQL Server Pro
InstantDoc ID #44167

We have an application that requires us to log all user activity against a SQL Server 2000 database, then make the logs viewable online. We need to keep the activity logs for 7 years. We're expecting to capture about 50GB of data in just 1 year. To minimize backup storage requirements, we were planning to break the data into two databases: an active-archive database and an inactive-archive database. The active archive would contain activity collected over the past month, and the inactive archive would contain everything else. Is this a valid approach? If so, what's the best way for the application programmer to extract data from the two databases—by using distributed partitioned views?

Using distributed partitioned views is an option for retrieving data from the two databases, but this approach could also result in end users inadvertently querying the larger, inactive database if the application doesn't use the appropriate partitioning key to constrain the query. Using a Live System query page and an Archive System query page might be a simpler solution, as long as you set users' expectations for potentially slower response for queries against the Archive System. Rolling data into an archive system is a good idea. As you note, this architecture lets you update and back up the archive system less often, saving tape and disk space—although 50GB seems smaller and smaller every year!



ARTICLE TOOLS

Comments
  • KURT
    8 years ago
    Oct 29, 2004

    I have a simular datanbase, I broke down the archive to a Daily Database (hold 3 days), a Monthly Database (holds 33 days) and a yearly database (designed to hold 5 years). All database have the same strucutre and I use a DTS process along with SP's to move the data between the databases. We then use the new Reporting Services to front the database have about 50 canned reports. We only allow ad-hoc querry on the daily database. If the ad-hoc querry needs to run on the other database, a new report is written and added to the report library.

You must log on before posting a comment.

Are you a new visitor? Register Here
  • SP1?
    I know there is a SP1 for SQL 2008 R2 available....and there is a "feature pack" as well... ...
  • SQL database mirroring
    I have SQL Server 2008 R2 Enterprise 64bit on Windows 2008 R2 Enterprise 64bit.  Each SQL Server has...
  • Dell Compellent Disk Drive
    Does anybody has experience with Dell Compellent Disk Drive? Basically, this system manages all disk...
  • Sql server performance tuning
    I need to find a tool that help me to optimize sql server,queries,improve the performance and solve ...