Thursday, 15 June 2017
Backing up a database and storing it at a secure location is excellent practice for preventing data loss. This is implemented by data houses on a regular basis. DataSight databases can be backed up and restored on the SQL server. This document guides through the steps involved in restoring a DataSight database provided that it has been backed up correctly and is recoverable.
Prerequisites
Before proceeding to restore a backed up database, please ensure the following:
- DataSight Administrator is installed
- Microsoft SQL Management Studio is installed
- db_owner privilege is granted
- Backup file is available on the local disk for restore
- A backup can be restored on an existing DataSight database, or a new DataSight database.
(i) If the backup is to be restored on an existing DataSight database, please proceed to restore.
(ii) To restore backup file on a new database, use DataSight Administrator to create the new database first. Then proceed to restore.
Restore
Follow the steps below to successfully restore a DataSight database:
- Connect to a DataSight server database engine and authenticate on the operating system or with a username and password.
- Launch SQL Server Management Studio.
- Select server type of Database Engine.
- Enter server name.
- Select Windows Authentication or SQL Server Authentication and authenticate credentials accordingly. SQL is connected to server database engine.
- Drop down Databases to view available DataSight databases.
- Select a destination database to restore backup on.
- Right-click on the database.
- Select Tasks > Restore > Database. A Restore Database window is launched. When a restore is initiated, the status of the Restore Database window should read “Ready”.
- Select General page.
- On the General page, set Source to Device.
- Click … to browse and add location of backup file.
- Select backup media type as File.
- Click Add to supply location of the backup file on the local disk.
- Locate the backup file on the device. Then click OK. The file location should display as backup media.
- Click OK to prepare backup media. In a few moments, the backup file should be ready to be restored.
- On the General page, set Destination to destination database. This is where the backup database will be restored.
- Under Restore Plan, ensure that the checkbox in the Restore column is checked.
- (Optional) If restoring on a new database, select Options page. Then under Restore Options, select Overwrite existing database (WITH REPLACE).
- Click OK to run restore. Please wait while the database is being restored.
- After a restore is successfully completed, a message will notify this. Click OK to accept.