Example: Manually backing up and restoring database on MSSQL
A database backup on a known good server (source) can be applied or migrated to another (destination) server. Details may differ on your environment.
Requirements
The destination SQL Server must support importing data from the source SQL Server (If transferring data across versions, check with your database administrator).
The destination database version must be supported by Bravura Security Fabric .
Preparation
Before executing the steps below, schedule instance downtime/maintenance. This is to prevent the destination from being outdated because source data was updated due to being running.
Back up on the source
To back up a database on the source server:
Open Microsoft SQL Server Management Studio.
Log in as database administrator.
Expand <server> > Databases.
Right-click on the instance database.
Select Tasks > Back Up...
Leave BackupType as Full.
Specify the Backup Destination. Ensure the destination has proper read/write access for the SQL services set.
If not using the default, note the default backup directory path, as you may need to respecify it back to the default stored backs after performing this backup.
Click OK.
Wait for backing up to complete and confirmation window to pop up.
Navigate to the specified backup destination and confirm that the .bak file of your database is there.
Restore on destination
To restore the database on the destination server:
Restore database:
Open Microsoft SQL Sever Management Studio.
Log in as database administrator.
Expand <server>.
Right-click on the instance database to apply the backup.
Select Tasks > Restore Database > Database...
Select Device and click ...
Click Add, specify the .bak file to restore from, and click OK.
Select the Options tab.
Select Overwrite the existing database (WITH REPLACE).
Click OK.
Wait for restore to complete and confirmation window to pop up.
Configure SQL logins:
Expand the database restored.
Expand Security.
Expand Users.
Right-click on the database owner, which typically will have the same name as the database.
Select Delete, and
No
when asked if you want to delete the schema.Warning
Do not delete the schema.
Click OK.
Wait for the delete to be completed.
Expand Security under <server>.
Expand Logins.
Right-click on the database and select Properties.
Select the User Mapping tab.
Select the restored database.
Click on the elipsis ( ... ) to browse and select the schema.
Select the following Database role membership for: <schema>:
db_datareader
db_datawriter
db_ddladmin
db_owner
Click OK.
Confirm database security user is added back.
Repeat for each database being migrated.
Post backup
After executing the steps listed above:
Back up the old Database Service (iddb) configuration.
Verify access to the new database from the node that will be connecting to it.
Use the iddbadm utility to update where the Bravura Security Fabric database is situated. If on a multi-node install, all nodes must be updated.