Link to home
Start Free TrialLog in
Avatar of Daryl Ponting
Daryl PontingFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Another question about database mirroring: are clients redirected?

Another question I'm afraid.

I've just been reading some information about SQL database mirroring.  It lists the following 'features' of mirroring:

1. Full database redundancy
2. Near instantaneous failover within 3 seconds
3. Failover can be performed manually or automatically.
4. No special hardware requirements.
5. Ease of manageability as it is easy to set up and can be configured to be self monitoring for automatic failover.
6. Transparent client redirection

My question is about the 6th option.  I didn't know the clients were redirected if the database fails over to the mirror.  I thought you'd need SQL clustering for that.

If I have an application writing data to a database on Server1 and it fails over to Server2, will the application start writing the information to the (now principle) database on Server2?
SOLUTION
Avatar of brejk
brejk
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
When using ADO.NET or the SQL Native Client and using a third sql server as witness, you can have automatic redirecting on failover.

If you are using classic ADO or another connection to sql server you have to write a script for the redirecting yourself.
Basically if the witness and server 2 agree that server 1 has gone down then yes the writing will then commence on server 2 as the primary then when server 1 comes back online it will be synchronised by server 2 and then become the redundant back up
sorry should be clear when server 1 comes back and is then synchronised again with server 2, server 1 will then be the back up