Solved

SQL Mirror

Posted on 2013-02-06
2
389 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 Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

756 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