Click here to Skip to main content
15,900,816 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Is it possible to mirror the database on the same sql server?
If yes then please provide me the steps for it.

Thanks

What I have tried:

I am searching for this online but it seems this is not possible. Need a confirmation for this.
Posted
Updated 5-Apr-17 2:53am

1 solution

It is possible but you have to jump through hoops to achieve it. It is also absolutely pointless. The whole point of mirroring is to maintain availability in the event of a failover ... it's going to be the server that fails so you will lose both your production and failover SQL Server instances.

Also be aware
Quote:
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Use Always On Availability Groups instead.
and be aware of Prerequisites, Restrictions, and Recommendations for Database Mirroring | Microsoft Docs[^]

If you insist on going ahead with mirrowing then the steps are given in this article: Mirroring a SQL Server Database is not as hard as you think[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900