Solved

DB Mirroring / Auto-Failover, but ODBC?

Posted on 2010-08-18
7
1,021 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

734 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