Click here to Skip to main content
15,885,546 members
Articles / Database Development / SQL Server
Article

Database Mirroring In MS SQL Server - Part II

Rate me:
Please Sign up or sign in to vote.
4.13/5 (5 votes)
9 Jun 2011CPOL 17.1K   16   4
Mirroring is the best database fail over option used by the SQL Server DBAs today. I hope this contribution adds little value to the beginner level DBAs.

While this video does not appear under "Videos" in the profile tab, it is part of videos on The Code Project. If you are interested in hosting a video on a coding solution on Code Project, email us at submit [at] codeproject.com.

With this video session I have tried to explain briefly how mirroring can be configured and used as one of the best fail over options for critical databases. Please use the forum below if you have any concerns.

This is the Part 2 - watch Part 1 here.

License

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


Written By
Database Developer
India India
I am a Microsoft certified Technology Specialist in MS SQL Server 2008 and 2005.I have fair amount of experience and expertise in MS database development, administration and modeling and MS BI. Started my career in 2007 and primarily into MS databases, and later diversified into MS BI especially SSIS. I also have a little exposure in Oracle 10g while working on one of the migration projects. But MS SQL Server is my passion!

Firm believer in knowledge grows from sharing, I really like reading books, trying new features and sharing the little that I know. Unless we're willing to have a go, fail miserably, have another go, success won't happen. The best thing I have discovered about myself is the "never say die" attitude. The best comment I have ever received is when my manager at my first job said "when this guy works he throws away his watch".

Comments and Discussions

 
QuestionAutomatic failover clarification Pin
HoneyProgrammer15-Jun-11 5:11
HoneyProgrammer15-Jun-11 5:11 
AnswerRe: Automatic failover clarification Pin
Keshav Singh15-Jun-11 6:18
Keshav Singh15-Jun-11 6:18 
By automatic fail over in mirroring what we mean is the backup database will be up and running without any manual intervention unlike in log shipping.

Now coming back to your question, the thing you are trying to achieve can be done via SQL Server Clustering and not mirroring. Let me explain. Say your application connects via ODBC connnection to Database Server "SQLVM01", as in that is the server value fixed in the connection string.

Now in clustering setup we have 2 servers Srv1 and Srv2 both are clustered as "SQLVM01" to represent 1 Server. They are in Active/Passive formation i.e. Srv1 will be alive and active and Srv2 will act as fail over. Your app will keep connecting to the same server but internally if Srv1 fails Srv2 will automatically take over without any interruption. Thus there not any connection changes required to be done by the apps.

Mirroring will still require the Apps to edit their connection string but nothing will be needed to be done for getting the back up database alive and active as that will happen automatically. While in case of log shipping you will need to also perform database fail over and then edit your app connection settings to point to the new server name where the DB is hosted.

Hope I have been able to clarify..
GeneralRe: Automatic failover clarification Pin
HoneyProgrammer15-Jun-11 9:10
HoneyProgrammer15-Jun-11 9:10 
GeneralMy vote of 5 Pin
saumya verma9-Jun-11 19:39
saumya verma9-Jun-11 19:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.