Showing posts with label Listener. Show all posts
Showing posts with label Listener. Show all posts

Monday, 25 May 2015

SQL Server High Availability - Manual Failover by serverku

Availability As we have seen SQL Server High Availability configuration and listener since same, I would like to go ahead for manual failover test in SQL Server 2012. So I would suggest to go through related previous posts.
  1. Configure Listener for high availability in SQL Server
  2. Implement High Availability in SQL Server - How to
Moving to test manual failover of SQL Server High Availability and following are the steps. Here Server 2 is a primary replica and Server1 is a secondary replica. Now we have to switch over the primary role from Server2 to Server1.

Step 1 : Connect primary replica availability group. Go to Availability Group and right clink on that and click on Failover.


Step 2 :Select instance, which you want to make a primary replica as shown in the image.


Step 3 : Connect SQL server instance, which you selected in earlier steps.


Step 4 : Click on Next and You can see the current primary replica and new primary replica.


Step 5 : Finally success on next step.


Step 6 : Last step to confirm primary replica, so connect with listener name and confirm as shown in the image.


This is just a manual failover test of Availability Group and hope you enjoyed it. In the next post we will see automated failover of Availability Group.

Friday, 8 May 2015

Configure Listener for high availability in SQL Server 2012 by serverku

A week ago I posted for high availability implementation in SQL Server 2012. I would like to read the earlier post and continue that post with and it’s configure a listener for availability group. So let us follow the steps.

Step 1 :  Connect primary server instance of availability group and go to AlwaysOn High Availability –> Availability Groups—> Availability Group Listeners –> Add Listener


Step 2 :  Assign Listener DNS Name, Port and Network Mode which should be DHCP or statistic IP.


Step 3 : We are done and now it ‘s time to connect and confirm SQL Server primary instance.


It should connect SQL Server primary instance, even a case of automatic or manual failover of instance involved in Availability Groups. So whenever a failover or primary server failure happened, we do not need to changed data source\connection string of application or wherever used. Hope you may like it.