Solved

SQL Mirror

Posted on 2013-02-06
2
379 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

706 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

15 Experts available now in Live!

Get 1:1 Help Now