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,
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to calculate iops? 12 28
Export data with an insert trigger to a linked server 20 22
SQl query 19 14
SQL Maintenance Plan 3 17
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.
In this article I will describe the Copy Database Wizard 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.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

746 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

12 Experts available now in Live!

Get 1:1 Help Now