Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4532

Bring Back SQL Secondary database to Standby / Read-only mode

$
0
0

Good day! 

I'm new to log shipping. I have setup two SQL Server. One is the primary database server and the other one is the secondary database server for Disaster Recovery. 

I tried to do logshipping. From the primary server, I back up the 'TestDB' database and copy & restore it to the secondary server. I chose the standby mode. Everything was fine. Then I shutdown the primary server to test if the logshipping is working. Then I restore the secondary server using this command 'RESTORE DATABASE TestDB' and then it was successful. 

My problem now is that when I switch on the primary server, I don't know how to make it as the online database and bring back the secondary database server to standby/read-only mode.

I hope someone could help me with my problem.

Thank you. 


Viewing all articles
Browse latest Browse all 4532

Trending Articles