Using DNS aliases with Database Mirroring

I recently found myself having to failover a database mirror due to hardware issues. I was pretty horified that to do this, one of the applications had to be resinstalled because it did not support the failover partner parameter in the connection string. Its not the first time I have encountered this situation with Java based apps even though it does support the failover partner specification.

Unhappy with this and wanting more flexibility, i started to implement a solution where all application database connections, connected via a dns alias rather than a specific server name. What this enabled was a transparent redirect of application connections just by modifying the DNS alias.

While it does not smoke out all the nasty little excel\access and bespoke apps that still make connections without a failover partner. Once they are pointed to the DNS alias there are going to be no more manual tasks to reconfigure odbc aliases or ini files

job done.....

@blakmk

Published 19 July 2010 18:50 by blakmk

Comments

# Twitter Trackbacks for http://sqlblogcasts.com/blogs/blakmk/archive/2010/07/19/using-dns-aliases-with-database-mirroring.aspx [sqlblogcasts.com] on Topsy.com

Pingback from  Twitter Trackbacks for                 sqlblogcasts.com/.../using-dns-aliases-with-database-mirroring.aspx         [sqlblogcasts.com]        on Topsy.com

20 July 2010 12:53 by tonyrogerson

# re: Using DNS aliases with Database Mirroring

Definitely, I do that at a couple of clients. You do need to make sure that the client get's cache flushed locally though otherwise it will still point at the old server.

Good tip!

Tony.

27 August 2010 13:35 by The Tao Of Sql Server

# Sql Server Consolidation and Configuration Part 2 Network

An often neglected part of Consolidation is the network configuration of a server. If you have mirroring