Constraint Violating Yak Guru
Posted - 07/21/2010 : 03:11:52
| 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.