Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to create Data Archiving in SQL Server 2005

How to create Data Archiving in SQL Server 2005

Scheduled Pinned Locked Moved Database
databasesql-serversysadmintutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Raghu_M
    wrote on last edited by
    #1

    I need to know how to archive data from particular database when it is growing above 1GB.Also it has to be restored when it was needed.Any Idea

    M L M 3 Replies Last reply
    0
    • R Raghu_M

      I need to know how to archive data from particular database when it is growing above 1GB.Also it has to be restored when it was needed.Any Idea

      M Offline
      M Offline
      Mohsiul Haque
      wrote on last edited by
      #2

      For most of the time Archiving database can be done by using SQL Jobs, I think at first you need to create a stored procedure which will fetch the data and dump into the archive database and then just call it from SQL Jobs with a given schedule.

      1 Reply Last reply
      0
      • R Raghu_M

        I need to know how to archive data from particular database when it is growing above 1GB.Also it has to be restored when it was needed.Any Idea

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        There's no "archiving" in SQL Server, there's only "backup" and "replication".

        1 Reply Last reply
        0
        • R Raghu_M

          I need to know how to archive data from particular database when it is growing above 1GB.Also it has to be restored when it was needed.Any Idea

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          You are asking for a strategy to manage your data, you are not going to get a satisfactory answer in a forum post. Most archiving is done by time stricture, anything that is 2 yo move to the archive database. This type of process requires that you copy (replicate) the data into an identical database and delete it from the production DB. Here you run up against data structure issues, all your chages to production structure needs to be reflected in the archive data. Queries can be written across both databases, but these are specific to archived results. Another strategy is data warehousing your data. You need to do some serious research into your business requirements before deciding on an archiving strategy.

          Never underestimate the power of human stupidity RAH

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups