Solved

Database Mirroring SQL 2005

Posted on 2009-07-01
3
139 Views
Last Modified: 2012-05-07
How would I mirror a database on the same physical server as well as on the same instance?

If not possible can I create a database mirror on the SAME server but on another instance?

 
0
Comment
Question by:vyotsukura
  • 2
3 Comments
 
LVL 7

Expert Comment

by:wilje
ID: 24757893
You can't mirror to the same instance - because you can't have the same database name more than one time.
You can set it up to mirror to another instance on the same server, but I have to ask what you are trying to accomplish.  I don't understand the requirement to mirror to the same server.
0
 

Author Comment

by:vyotsukura
ID: 24763240
Wilje:

Thanks that is what I expected.

In our environment, we have  production and testing as separate databases. I have to constantly be restoring backups of production to the testing dB. Instead, I would like to create a mirror using the production as the source and the testing as the target. I have all this on one server only.
0
 
LVL 7

Accepted Solution

by:
wilje earned 500 total points
ID: 24763839
I don't think a mirror is going to work for you.  A mirror is not accessible while you are mirroring, so you would have to break the mirror to make is accessible as a copy.  Once you do that, you would have to setup mirroring again.
That would be a lot more work than just scheduling a daily restore to a test database.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
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.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

18 Experts available now in Live!

Get 1:1 Help Now