Solved

SQL Mirror

Posted on 2013-02-06
2
384 Views
Last Modified: 2013-02-07
I have a database that was mirrored and the principal needed to be moved to a new server, we detached the the database after stopping the mirror and moved the data and log files to new server. restarting the mirror fails, so me changed the state of the partner to recovery and wanted to restore a log backup. I need to set the state to no recovery on the partner so I can restore the logs is there a way to change the state to no-recovery to allow me to restore the log and restart the mirror?
0
Comment
Question by:atorex
2 Comments
 
LVL 10

Expert Comment

by:sqlservr
ID: 38862615
no you can't alter the database to no recovery mode
take a full backup followed with transaction log backup and restore it on mirrored server in no recovery mode
and configure log shipping
0
 
LVL 14

Accepted Solution

by:
Daniel_PL earned 500 total points
ID: 38863396
Actually you can switch database into recovering state by taking tail log backup with norecovery option (BACKUP LOG AdventureWorks TO DISK = 'C:\AW.bak' WITH NORECOVERY).

However, you cannot use this method to restore mirroring since log chain is broken by additionall backup taken to switch database into recovering state.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help on t-sql 2012 10 53
Webservices in T-SQL 3 30
insert wont work in SQL 14 18
Create snapshot on MSSQL 2012 3 17
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how the fundamental information of how to create a table.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now