Solved

DB Mirroring / Auto-Failover, but ODBC?

Posted on 2010-08-18
7
1,006 Views
Last Modified: 2012-08-13
I think I have a problem.

I'm all excited about finally getting auto-failover in place for some of our databases, using High Safety configuration and mirroring.

For client apps, I know we can edit the connection strings to identify the failover server.

But...it just hit me that some of our backbone (third-party) applications use ODBC DSNs to identify our primary server.

Crap!  I really want to use this configuration, and not a Windows Server cluster or anything like that.

What are my options?  I cannot convert this app to use ODBC.  And I cannot convert it to allow OLEDB connections.

Thanks for any insight on this.
0
Comment
Question by:bamapie
7 Comments
 
LVL 42

Accepted Solution

by:
dqmq earned 500 total points
ID: 33470389
>What are my options?  I cannot convert this app to use ODBC.  And I cannot convert it to allow OLEDB connections.

That's a bit confusing because the issue was with respect to 3rd party app's that DO use ODBC.  In any case, if the ODBC DSN's are configured with the Native Client provider, then you do get the option for a Mirroring failover server.

Beyond that, you would need to look for some infrastructure in your network layer that redirects DNS assignments or reassigns IP addresses.  Not quite automatic, though.  

0
 
LVL 3

Expert Comment

by:mnachu
ID: 33470391
I guess your infrastructure guys can add an entry to the DNS server that has the name of the failed server which maps to the new running server. Wouldn't something like re-directing solve your problem?

Regards,
Nachi
0
 
LVL 2

Expert Comment

by:dhlotter
ID: 33474030
High Availability operating mode provides durable synchronous transfer between the principal and mirror databases, as well as automatic failure detection and automatic failover.

High Safety operating mode transfers transactions synchronously, but it does not have a witness server. The synchronous transfer guarantees that all transactions committed at the principal are fi rst committed at the mirror, and it requires the same performance considerations as the High Availability operating mode. However, the lack of a witness prevents automatic failover to the mirror if the principal fails. If the principal fails in High Safety operating mode, you must promote the mirror manually to serve the database. Because High Safety operating mode’s synchronous transfer can affect application performance but does not offer the benefi t of automatic failover, this operating mode is not recommended for normal operations. You should confi gure a Database Mirroring session in High Safety operating mode only when you need to replace the existing witness server. After you have replaced or recovered the witness, you should change the operating mode back to High Availability operating mode.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 2

Expert Comment

by:dhlotter
ID: 33474047
in other words, you would not be able to use high safety mode for automatic failover.
0
 

Author Comment

by:bamapie
ID: 33474804
dhlotter:  I mixed up my terms.  I meant High Availability.
0
 

Author Comment

by:bamapie
ID: 33475385
dqmq:

>In any case, if the ODBC DSN's are configured with the Native Client provider,
>then you do get the option for a Mirroring failover server.

Where would I see / configure this?

Thanks
0
 

Author Comment

by:bamapie
ID: 33475689
Never mind, I see it.  Awesome.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Select2 jquery help 9 45
Row-Level Security 2 19
Events in static methods 3 25
SQL JOIN + SUBQUERY? 3 13
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now