?
Solved

SQL Mirror

Posted on 2013-02-06
2
Medium Priority
?
402 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Expert Comment

by:Ramesh Babu Vavilla
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 2000 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

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

764 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