How to Setup Mirroring in SQL Server ?(Screen Shots) What is Mirroring in SQL Server ? Database mirroring is an alternative high- availability solution to failover clustering in SQL Server. Database mirroring supports automatic failover, but does not require cluster-capable hardware, and can therefore provide a cost- effective alternative to failover clustering. In this Article, we will implement Mirroring with witness Server and will Automatic Failover too. What is the Hardware and software requirement for implementing Mirroring in SQL Server ? There is no any such hardware and software requirement for implementing. Even SQL Server Standard Edition supports Mirroring. For More Details about feature supported by various editions, please check my previous post, "Does SQL Server Standard Edition Supports Mirroring?" To test the Automatic failover, you need three SQL Server Instances. In case there is a firewall in between Principal, Mirror and Witness Server, please ensure there endpoint ports are Opened in firewall. How to implement Database Mirroring in SQL Server 2008 R2? Implementing SQL Server Mirroring is quite simple in SQL Server 2008 R2. For better understanding, Lets take an real business requirement and deploy mirroring with WITNESS Server (Automatic Failover) I have already posted an Video Post, where a step by step implementation of mirroring is available, but you need to have silver light installed in your system to watch this video and a good bandwidth. In this Article, I am going to implement a Mirroring using three SQL Server Instances, where Principal Server 1. Mirror Server 2. Witness Server 3. Principal Server Details SQL Server Instance Name : <SERVER_NAME>\SQL1 • Version : SQL Server 2008 R2 • Posted by DBATAG on December 20, 2010 Leave a comment (7) Go to comments MYOB Warehousing AddOn www.datapel.com Best Practice Warehouse Management AddOn for your MYOB. MEX Maintenance Software www.mex.com.au/free-trial Australia's #1 Maintenance Solution Save costs & increase uptime. F2 Dealership Software www.comsolf2.com Australia's leading parts inventory Dealership Software. NuoDB - NewSQL Leader www.nuodb.com Elastic SQL database for the cloud Download the Beta today SQL Server Training & Consulting DBATAG, a t Home Offerings Featured Articles Certification Clients Contact US SEARCH Q & A Search: type, hit en Page 1 of 17 How to Setup Mirroring in SQL Server ?(Screen Shots) | SQL Server Training & Con... 27/10/2011 http://www.sqlserver-training.com/how-to-setup-mirroring-in-sql-server-screen-shots/-
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
How to Setup Mirroring in SQL Server ?(Screen Shots)
What is Mirroring in SQL Server ?
Database mirroring is an alternative high-
availability solution to failover clustering in SQL
Server. Database mirroring supports automatic
failover, but does not require cluster-capable
hardware, and can therefore provide a cost-
effective alternative to failover clustering. In
this Article, we will implement Mirroring
with witness Server and will Automatic
Failover too.
What is the Hardware and software
requirement for implementing Mirroring in
SQL Server ?
There is no any such hardware and software requirement for implementing. Even SQL Server Standard
Edition supports Mirroring. For More Details about feature supported by various editions, please check my
previous post, "Does SQL Server Standard Edition Supports Mirroring?" To test the Automatic
failover, you need three SQL Server Instances.
In case there is a firewall in between Principal, Mirror and Witness Server, please ensure there endpoint
ports are Opened in firewall.
How to implement Database Mirroring in SQL Server 2008 R2?
Implementing SQL Server Mirroring is quite simple in SQL Server 2008 R2. For better understanding, Lets
take an real business requirement and deploy mirroring with WITNESS Server (Automatic Failover)
I have already posted an Video Post, where a step by step implementation of mirroring is available, but you
need to have silver light installed in your system to watch this video and a good bandwidth.
In this Article, I am going to implement a Mirroring using three SQL Server Instances, where
Principal Server 1.
Mirror Server 2.
Witness Server 3.
Principal Server Details
SQL Server Instance Name : <SERVER_NAME>\SQL1 •
Version : SQL Server 2008 R2 •
Posted by DBATAG on December 20, 2010 Leave a comment (7)Go to comments
Here we have option to specify the TCP / IP port on which endpoint will be listening to requests. In case
there is a firewall in between Principal and Mirror Server, please ensure there these ports are Open.
In our example, all these three instances are hosted on a single physical box that the reason we will opt for
different port for Mirror and Witness Server End point.
Adding to this we have an option to encrypt data, which travel between principal, mirror and witness
server. In case we opt for this, we assume that you are already have certificates, otherwise, this will work
without Certificates too.
So In Select Principal Option, we specified .\SQL1 as Server name and used Windows Authentication to
connect to principal server, which has sysadmin privileges. We also checked the Encrypt Data option and
5022 is the Port number which we used for Principal endpoint.
Next Screen where we need to specify information about the SQL instance where the mirror copy of the database will be located, in our example this is ./SQL2
MYOB Warehousing AddOnBest Practice Warehouse Management AddOn for your MYOB.
www.datapel.com
Page 8 of 17How to Setup Mirroring in SQL Server ?(Screen Shots) | SQL Server Training & Con...