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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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.
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.


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,
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MS SQL Server connect issues 4 39
sql update 2 37
Need help with a query 3 39
Parsing this XML works but the other one doesn't 9 29
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

749 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