SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to configure mirrored DB on ODBC for failover


How to configure mirrored DB on ODBC for failover

Author
Message
asir83
asir83
Valued Member
Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)

Group: General Forum Members
Points: 64 Visits: 211
Hello,
I am having a question on configuring mirror DB on ODBC. When a Principal DB goes down the mirror DB comes up & becomes the principal DB, this will be in the case of High safety with/without automatic failover.

However, I am intreseted to know, how can we make this work on ODBC. I have configured a SQL Server Native client & created the ODBC setup, mentioned the mirror instance name as well & using a SQL Authenticated login.

The moment i do a failover on the DB side, the connection on the application side breaks inspite of mentioning the mirror instance.

I am not able to understand how can i make this work so that when the DB is failed over, the application shouldn't break, just like clustering.

Thanks
Asir
asir83
asir83
Valued Member
Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)

Group: General Forum Members
Points: 64 Visits: 211
SQL Server Gurus any solution to mu question?
krefior
krefior
SSC-Enthusiastic
SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)

Group: General Forum Members
Points: 173 Visits: 199
If you don't see the option for Failover in the ODBC driver you need to install a newer ODBC. If I remember right you need to have at least SQL server native client 10 to support failover. When you create the new data source, select the Native 10 (or higher) driver.

You have to select a default database (of course) and then can select a mirror server. (this is on the second page of creating a new DSN)
krefior
krefior
SSC-Enthusiastic
SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)SSC-Enthusiastic (173 reputation)

Group: General Forum Members
Points: 173 Visits: 199
After re-reading your original post, it looks like you may be using the correct client (As you mention you have the mirror instance set)

As a troubleshooting test I would failover the server and see if you can create a connection to the mirror only - set it as the primary server, as if there were no mirroring.

What king of authenitcation are you using NT or SQL? SQL users have to have the same SID on the principal and the mirror (otherwise they will be a db orphan when flipped to the mirror)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search