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

Removing Database from AlwaysOn Availability Group

$
0
0

Hello,

I have a 2-node SQL Server AlwaysOn Availability Group.  When I execute this TSQL command on the Primary server 

USE master 
go 
ALTER AVAILABILITY GROUP MyAG REMOVE DATABASE TestDB

It removes the "TestDB" from the Availability Group.  Everything looks fine on the Primary server.  However, on the Secondary replica, the "TestDB" has the status of "Restoring ..." next to it.   The database is inaccessible.  The status remains "Restoring..." for a while.  Looks like the only thing I could do is to drop it which I did.

My question is: after I remove the db from MyAG, what do I need to do make the "TestDB" available for use again on the secondary replica?

Thank you


Viewing all articles
Browse latest Browse all 4532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>