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

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 log shipping n database mirroring

Author  Topic 

frank.svs
Constraint Violating Yak Guru

368 Posts

Posted - 2010-07-21 : 03:11:52
Log shipping and database mirroring

Hi,

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

IF(PrimaryIsAlive)
-- connect to Primary Server
ELSE
-- 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.

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2010-07-21 : 15:03:19
You do that in the connection string.
From connectionstrings.com:

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

Dinakar Nethi
************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page
   

- Advertisement -