Link to home
Start Free TrialLog in
Avatar of Michael L
Michael LFlag for United States of America

asked on

SQL Restore Stuck at 'Restoring'

Experts,

I'm trying to set up database mirroring (between SQL1 and SQL2), with witness (SQL3), according to these guidelines, but the Restore of SQL's backup is stuck at Restoring.

Any ideas?
Avatar of ttist25
ttist25

Here's a link to a solution that I've used in the past.  https://dba.stackexchange.com/questions/56169/sql-server-databases-stuck-in-restoring-state

In the article they state that it's usuall due to restoring with NO RECOVERY.  

!!!!!!!!!!!Be careful there is a caution about the possibility of messing stuff up but I've never had a problem with it!!!!!!!!!!  

I just did this two days ago:
RESTORE DATABASE [DataBase Name] WITH RECOVERY;

and I think I've also used this before:
ALTER DATABASE DBName SET ONLINE;
Avatar of Michael L

ASKER

I've done it with NO RECOVERY without issue before, but the Mirroring does not like it. In the article I posted, it explicitly wants you to select NO RECOVERY.

I get an error 1418 when trying to Mirror to a Recovery WITH RECOVERY on.
Avatar of Vitor Montalvão
That's the expected behaviour for a mirrored database.
Can you elaborate, Vitor?
SOLUTION
Avatar of Zberteoc
Zberteoc
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Do you have any guides on setting that up?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial