Back up and restore Digita Suite databases with SQL Server Management Studio
When the Digita Database Backup Tool is not available, or you are unable to backup large databases, you can use SQL Server Management Studio to manage your backups.
Back up a database:
- Open SQL Server Management Studio. Log in with the administrator account or SQL Server Administrator account ('sa').
- Expand on 'Databases' and right click on the database you wish to backup. Follow the options below to select the Backup option.
- SelectRemove, thenAdd. Failure to do this will mean the backup will append into the last backup file created.
- When adding a backup file, change the path to your preferred location, or use the default path. Enter a file name, followed by a '.BAK' file extension and selectOK.
- SelectOKto start the backup. You'll get a notification once it's complete.
Restore a database
:
- Open SQL Server Management Studio. Log in with the administrator account or SQL Server Administrator account ('sa').
- Right-click onDatabaseand selectRestore Database.noteIf the database already exists, you can also right-click on the database name and selectRestore, thenDatabase.
- Select the ellipsis button next toDevice, thenAdd. Select the database you want to restore, thenOK.
- Select theOptionspage and tickOverwrite the existing database (WITH REPLACE).
- SelectOKto restore.
Recreate SQL Server Database accounts and permissions
:Once the databases have been restored, you will need to apply a selection of user accounts and permissions to allow the software to connect with the databases.
- In SQL Server Management Studio, select the database you wish to recreate the permissions in.
- SelectNew Query, enter the text Security, then selectExecute.
- If the query runs successfully, there will be a report at the bottom of the page with no red text errors.
If the query runs successfully, there will be a report at the bottom of the page with no red text errors.
To run on additional databases, just change the drop down menu to change the database.
note
With this script open after being run, it will hold a connection to the database. If you are about to run a database upgrader, ensure you close the query.