Mirroring
Mirroring
• Right-click on “EmployeDB” (or whatever you named it), then click on “Task” from the
menu, then click on “Restore” and then click on “Transactional Log”
• Restore Database window will appear
• in the “source” section,
• select “From Device” option, then
• click on device then click on “….” icon/button to locate your backup files.
• Click on “Options” from the left menu,
• in “restore State” section, select second option “…… Restore with No-Recovery”.
• click on OK to restore database transactional log.
If you follow the steps properly, then the target database i.e. EmplyeeDB is in restoring mode.
To Fix Error
• Click on window icon/start menu
• Write “configuration” in search, it will show “SQL Server Configuration Manager”, click on
it to launch it.
• A dialog box will appear, click on “Yes” to proceed.
• In SQL Server Configuration Manger, from the left menu, click on “SQL Server Services”.
• in the right panel, you will have two SQL Servers listed (Main instance and mirror instance)
• Right-click on SQL Server instance and click on properties.
• In Properties window, under “Log On” tab, click on “This account” and enter your
computer username as “.\UserName” and password in respective fields. Then click on OK.
• Repeat the step 6 and 7 for SQL mirroring server instance.
• When you have done. Right click on respective SQL Agent service and click on “start” to
start that service.
Once you have done, re attempt for mirroring exercise this time it will not prompt.