Sql-server – Removing/ Undoing Database addition to Alwayson Groups

availability-groupssql server 2014

I am about to create a new database for an AAG group, and I want to know in case of a fall back plan where the data synchronization fails, would removing the database from the AAG and then dropping it from the primary would suffice? Please advice

Thanks!

Best Answer

Yes it is possible to do so. However, there are some possible issues you have to consider or expect.

  1. You will have at some down time in you application or web (whatever accessing the database).

  2. You need to change the connection string. AOA group connection string uses the listener or AoAgroup. When you switch back, you need to use regular connection string FQDN of your server or IP of your address.

  3. You might also need to remove the server from the cluster.

  4. When you failover databases under your secondary server remain under no recovery state. Databases in your primary server will be online but sometimes (especially if you have really big database) if there is some transaction log left and during the failover, your database will hang up under suspect mode.