Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 log shipping n database mirroring
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

368 Posts

Posted - 07/21/2010 :  03:11:52  Show Profile  Reply with Quote
Log shipping and database mirroring


I have tried with the log shipping and worked fine.

I have also done the manual failover.

This i have tried at backend.

I have a question, how does the client application comes to know the failover has happened
and need to be connected to the secondary server which will now be acting as Primary Server.

What piece of code / logic they implement to redirect the transactions on to new server.

Will be there any continuous pinging logic written within an IF condition.

I beleive the pseudo code some what looks like below

-- connect to Primary Server
-- connect to secondary server

I have the same question in mind with respect database mirroring as well?
How will the client is redirected to mirrored server when Principal is down?

Any good links on this and regarding the role_change process?

Thanks in Advance.

Flowing Fount of Yak Knowledge

2507 Posts

Posted - 07/21/2010 :  15:03:19  Show Profile  Visit dinakar's Homepage  Reply with Quote
You do that in the connection string.

Data Source=myServerAddress;Failover Partner=myMirrorServerAddress;Initial Catalog=myDataBase;Integrated Security=True;

Dinakar Nethi
Life is short. Enjoy it.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000