Mirroring on 2 windows servers with the same instance name on each server

Posted on 2013-01-15
Last Modified: 2013-01-29

Please can anyone tell me if there are issues with creating mirrored SQL Server 2008 R2 instances that have the same instance name?

I have been asked to create the following;

Server1\Instance1     mirrored to   Server2\Instance1
Server3\Instance2     mirrored to   Server2\Instance2
Server4\Instance3     mirrored to   Server2\Instance3

In addition, another instance will be installed on server2 for logshipping purposes from the production servers.

Other than any potential impact with IO/networking etc - are there any issues with doing this?

Many thanks for your help
Question by:rdbconcepts
  • 4
  • 3
LVL 10

Expert Comment

ID: 38778233
Please use the built-in replication option available from the Studio manager.

Author Comment

ID: 38778530

Are you saying that I should not use mirroring then?

The business took the decision to do their DR using mirroring and log shipping. Not replication.

LVL 10

Accepted Solution

ashwin_kumar525 earned 334 total points
ID: 38778862

This has everything you want. You can combine log shipping and database mirroring together to provide solution for high availability and disaster recovery.

Author Comment

ID: 38779081
Thanks - That is a great document and I hadnt seen it as yet.

My original question still wasnt answered in it though - would it be a problem if the mirror and secondary instances had the same name?

(This is so when they fail over, the applications only need very minor changes to swap them to the secondary db)

I suspect that the lack of a warning about doing this implies it is okay (which seems to be ms's way), but I would really appreciate knowing if anyone has done this sucessfully or not.

Many thanks,
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

LVL 10

Assisted Solution

ashwin_kumar525 earned 334 total points
ID: 38781587
Yes, you can have same instance name on multiple servers but if DR and HA is what you are looking for, I found an article which runs through the steps. The microsoft article I previously provided talks about the same but is a bit of confusing.

I cannot tell you whether having same Instance name on two servers will allow for mirroring between them.

Author Comment

ID: 38803324
Ill be doing this, this week so will reply back as to whether it works or not.

Thanks for your comments
LVL 24

Assisted Solution

by:DBAduck - Ben Miller
DBAduck - Ben Miller earned 166 total points
ID: 38810029
There is no problem using the same instance name in a mirror.

Also make sure that you look at the option of putting both names of the mirrors in your connection strings (if you are using .NET to connect). You can use a Failover_Partner=server2\instance1 in your connection string and if the application tries to connect to your primary instance, and it is not there, it will try the Failover_Partner if you have Automatic Failover.

Author Closing Comment

ID: 38831917
Thanks for your help - its working fine with the matching instance names - though it does make me check a lot more that Im in the correct instance when I do things!!

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Parse field in SQL View 15 96
SQL Exceptions 3 36
Time Duration able to handle overflow of 24+ hours 5 39
Where to download and how to install sqldmo.dll 5 27
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now