SQL Server AlwaysOn ( Availability Group ) Architecture and Step by Step Installation -4 Add and Remove Database Steps


I will continue to explain What is the SQL Server AlwaysOn Architecture and Step by Step Installation in this article series.


SQL Server AlwaysOn

Read the previous article of SQL Server AlwaysOn before this.

SQL Server AlwaysOn Architecture and Step by Step Installation -3 Manual Fail Over Steps




AlwaysOn Availability Group Install

In my previous article I did the Manual Failover test, in this article I will show you how to Add a new Database to AlwaysOn and Monitor AlwaysOn properties. We can check SQL Server AlwaysOn on Windows Failover Cluster Manager. When we look at the Roles tab, we can see the status of the AlwaysOn name and the Owner Node.



Stop SQLC1 Service or you can do this test by turning off the server to see what is going on in the AlwaysOn.



When I look at the AlwaysOn dashboard, I see that SQLC2 is primary as below.





When I turn SQLC1 back on, it is synchronous and continues to run in Secondary mode.


Let’s go to the same test and do same step on SQLC2 and restart SQLC2  and then it will open SQLC2 as Secondary and SQLC1 will be Primary


SQLC1 became primary after SQLC2 restart.





Add and Remove Database on AlwaysOn

The following steps are performed to Add a New Database to AlwaysOn.


Select a New Database which meets prerequisites.


We will synchronize as FULL so that Backup will take and restore itself.



Choose Secondary Replica .


Started to add a new database to AlwaysOn.



The new database was added as follows.


When we look at the SQL Server AlwaysOn dashboard again, we see that TESTDB and POCDB have been added.



The following method is followed to Remove any database from AlwaysOn.




Do you want to learn Microsoft SQL Server DBA Tutorials for Beginners, then read the following articles.

SQL Server ( MSSQL DBA ) Database Tutorials for Beginners Database Administrators

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *