Move Database to archive Database

Note To keep your archive database version up to date, let a UCC run on the database.


  • Archive database already created

    Tip You can copy the database to already have all the data in the archive.



This script will move all data from the current database to the archive database.

Then it will cleanup the current database, with records older then the retention.


Run Move to Archive

  1. Request the "MoveToArchive" script from the support desk

  2. Login to a machine / server with "Microsoft SQL Server Management Studio"

  3. Connect to the Database engine, where the databases are located

  4. Open the "MoveToArchive" script

  5. Enable SQLCMD mode. (Menu > Query > SQLCMD Mode)

  6. Change the variables

    1. DatabaseName = Name of the current database

    2. ArchiveDatabaseName = Name of the archive database

  7. Change the Parameter

    1. DaysRetention = The number of days you would like to keep data in the current database

  8. Execute the script