Restoring the Databases onto the Mirror Server

After the database backups have been transferred to the mirror server, they should be restored onto that SQL instance. What is critical is that both the full backup and the logs backup must be restored with the NORECOVERY option chosen. If this is not chosen during the restore process, the mirror won’t be able to be created. If restoring using the GUI, choose the Restore with NoRecovery radio button in the Options tab, and be sure to do it for both database and logs restores, as shown in Figure 17.5.

Figure 17.5. Restoring the logs with No Recovery to set up a mirror copy.

image

You can also choose to use a TSQL script, similar to the following, to restore the databases:

image

Replace the file location and the database name to match your environment and repeat for additional databases. After both the full backup and the logs backups have been restored with NORECOVERY, you can configure the mirroring.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset