Solved

DB Mirroring / Auto-Failover, but ODBC?

Posted on 2010-08-18
7
1,013 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

773 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