Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8979

Dynamic Backup and Restoration of data with 2 databases

$
0
0
Good Day People,
    The idea behind what i'm doing is fairly simple, but the explanation is complicated:
    I want to have, at any given point in time, 2 Databases on a server.  <databaseName_Active>, and <databaseName_Historical>.  Let x be the amount of time (preferably in days) before a next incremental backup.  On deployment, <databaseName_Active> will have exactly the same data as <databaseName_Historical>.  What I need to be done is this: every x times an incremental backup is performed and saved to a backup file named <recentBackup>.  After the incremental backup is performed, <databaseName_Active> purges all records/tables that have been backed up.  Immediately following, a script should append <recentBackup> to <databaseName_Historical>.

    In summary, I have all this transactional data, in the current database, that lets say every 7 days I want to clear from the transaction DB, make some sort of backupfile, and dump it into another database for long term storage. The current db will then go back to its initial state waiting for new transactional data to come in.

    How can I achieve this using Microsoft SQL Server (Server version is unimportant - for example, 2005 or whatever is best).

SIRIUS

Viewing all articles
Browse latest Browse all 8979

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>