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

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

frank.svs
Constraint Violating Yak Guru

368 Posts

Posted - 07/21/2010 :  03:11:52  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

USA
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.
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
  Previous Topic Topic Next Topic  
 New 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.05 seconds. Powered By: Snitz Forums 2000