Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Possible to Create ODBC to mirrored DB's

 
   Database Help (Home) -> ODBC RSS
Next:  mde access database front end to to SQL  
Author Message
tuned

External


Since: Jun 20, 2008
Posts: 6



(Msg. 1) Posted: Wed Dec 03, 2008 5:50 am
Post subject: Possible to Create ODBC to mirrored DB's
Archived from groups: microsoft>public>sqlserver>odbc (more info?)

We have an application that requires an ODBC connection for it to work
successfully. I've set up 3 SQL 2005 servers to use db mirroring and the
mirroring works fine. Trouble is I'm unable to get the clients to connect to
the mirrored server without physically creating an ODBC connection to that
server as well. I thought about creating a dns entry and then when the roles
switch update dns with the new ip address. While that would work I don't
think it's terribly efficient and it couldn't be done pro-actively since we'd
have to wait for a user to report there was an error. I thought about
creating duplicate entries with the ip addresses of the 2 servers but
thinking about it wasn't sure that would work either since technically the
failed primary (new mirror) would still respond.

Am I missing a step in getting the clients to connect? They're all XP boxes
and I've tried both the SQL Native Client as well as the SQL Server
connection.

 >> Stay informed about: Possible to Create ODBC to mirrored DB's 
Back to top
Login to vote
Bob Beauchemin

External


Since: Oct 10, 2008
Posts: 8



(Msg. 2) Posted: Wed Dec 03, 2008 8:19 pm
Post subject: Re: Possible to Create ODBC to mirrored DB's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Have you tried specifying FailoverPartner or FailoverPartnerSPN in the ODBC
connection string? There is an example of using ODBC with Mirroring in the
SQL Server samples, info at
http://msdn.microsoft.com/en-us/library/aa337204.aspx .

Cheers,
Bob Beauchemin
SQLskills


"tuned" wrote in message

> We have an application that requires an ODBC connection for it to work
> successfully. I've set up 3 SQL 2005 servers to use db mirroring and the
> mirroring works fine. Trouble is I'm unable to get the clients to connect
> to
> the mirrored server without physically creating an ODBC connection to that
> server as well. I thought about creating a dns entry and then when the
> roles
> switch update dns with the new ip address. While that would work I don't
> think it's terribly efficient and it couldn't be done pro-actively since
> we'd
> have to wait for a user to report there was an error. I thought about
> creating duplicate entries with the ip addresses of the 2 servers but
> thinking about it wasn't sure that would work either since technically the
> failed primary (new mirror) would still respond.
>
> Am I missing a step in getting the clients to connect? They're all XP
> boxes
> and I've tried both the SQL Native Client as well as the SQL Server
> connection.

 >> Stay informed about: Possible to Create ODBC to mirrored DB's 
Back to top
Login to vote
tuned

External


Since: Jun 20, 2008
Posts: 6



(Msg. 3) Posted: Thu Dec 04, 2008 5:58 am
Post subject: Re: Possible to Create ODBC to mirrored DB's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm unfamiliar with using a connection string for the ODBC connection. We
normally create the connection using odbcad32 under System connections. When
the app launches you have a drop-down list of connections to choose so the
user just chooses the appropriate one and goes in.

Currently the connections are made using the SQL Driver. Should I remove
this connection and recreate it with the SQL Native Client and then specify
the other server as the mirror server? Or is that not what you're referring
to?

"Bob Beauchemin" wrote:

> Have you tried specifying FailoverPartner or FailoverPartnerSPN in the ODBC
> connection string? There is an example of using ODBC with Mirroring in the
> SQL Server samples, info at
> http://msdn.microsoft.com/en-us/library/aa337204.aspx .
>
> Cheers,
> Bob Beauchemin
> SQLskills
>
>
> "tuned" wrote in message
>
> > We have an application that requires an ODBC connection for it to work
> > successfully. I've set up 3 SQL 2005 servers to use db mirroring and the
> > mirroring works fine. Trouble is I'm unable to get the clients to connect
> > to
> > the mirrored server without physically creating an ODBC connection to that
> > server as well. I thought about creating a dns entry and then when the
> > roles
> > switch update dns with the new ip address. While that would work I don't
> > think it's terribly efficient and it couldn't be done pro-actively since
> > we'd
> > have to wait for a user to report there was an error. I thought about
> > creating duplicate entries with the ip addresses of the 2 servers but
> > thinking about it wasn't sure that would work either since technically the
> > failed primary (new mirror) would still respond.
> >
> > Am I missing a step in getting the clients to connect? They're all XP
> > boxes
> > and I've tried both the SQL Native Client as well as the SQL Server
> > connection.
>
>
 >> Stay informed about: Possible to Create ODBC to mirrored DB's 
Back to top
Login to vote
tuned

External


Since: Jun 20, 2008
Posts: 6



(Msg. 4) Posted: Thu Dec 04, 2008 6:55 am
Post subject: Re: Possible to Create ODBC to mirrored DB's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

BTW, I set up the mirroring using the DB Mirroring Wizard from within
management studio if it makes a difference.

"tuned" wrote:

> I'm unfamiliar with using a connection string for the ODBC connection. We
> normally create the connection using odbcad32 under System connections. When
> the app launches you have a drop-down list of connections to choose so the
> user just chooses the appropriate one and goes in.
>
> Currently the connections are made using the SQL Driver. Should I remove
> this connection and recreate it with the SQL Native Client and then specify
> the other server as the mirror server? Or is that not what you're referring
> to?
>
> "Bob Beauchemin" wrote:
>
> > Have you tried specifying FailoverPartner or FailoverPartnerSPN in the ODBC
> > connection string? There is an example of using ODBC with Mirroring in the
> > SQL Server samples, info at
> > http://msdn.microsoft.com/en-us/library/aa337204.aspx .
> >
> > Cheers,
> > Bob Beauchemin
> > SQLskills
> >
> >
> > "tuned" wrote in message
> >
> > > We have an application that requires an ODBC connection for it to work
> > > successfully. I've set up 3 SQL 2005 servers to use db mirroring and the
> > > mirroring works fine. Trouble is I'm unable to get the clients to connect
> > > to
> > > the mirrored server without physically creating an ODBC connection to that
> > > server as well. I thought about creating a dns entry and then when the
> > > roles
> > > switch update dns with the new ip address. While that would work I don't
> > > think it's terribly efficient and it couldn't be done pro-actively since
> > > we'd
> > > have to wait for a user to report there was an error. I thought about
> > > creating duplicate entries with the ip addresses of the 2 servers but
> > > thinking about it wasn't sure that would work either since technically the
> > > failed primary (new mirror) would still respond.
> > >
> > > Am I missing a step in getting the clients to connect? They're all XP
> > > boxes
> > > and I've tried both the SQL Native Client as well as the SQL Server
> > > connection.
> >
> >
 >> Stay informed about: Possible to Create ODBC to mirrored DB's 
Back to top
Login to vote
Bob Beauchemin

External


Since: Oct 10, 2008
Posts: 8



(Msg. 5) Posted: Thu Dec 04, 2008 7:07 am
Post subject: Re: Possible to Create ODBC to mirrored DB's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

AFAIK, you need SQL Native Client or SQL Native Client 10 ODBC driver to
work with mirroring. Then you'll be able to specify the other server as the
mirror.

Cheers,
Bob Beauchemin

"tuned" wrote in message

> I'm unfamiliar with using a connection string for the ODBC connection. We
> normally create the connection using odbcad32 under System connections.
> When
> the app launches you have a drop-down list of connections to choose so the
> user just chooses the appropriate one and goes in.
>
> Currently the connections are made using the SQL Driver. Should I remove
> this connection and recreate it with the SQL Native Client and then
> specify
> the other server as the mirror server? Or is that not what you're
> referring
> to?
>
> "Bob Beauchemin" wrote:
>
>> Have you tried specifying FailoverPartner or FailoverPartnerSPN in the
>> ODBC
>> connection string? There is an example of using ODBC with Mirroring in
>> the
>> SQL Server samples, info at
>> http://msdn.microsoft.com/en-us/library/aa337204.aspx .
>>
>> Cheers,
>> Bob Beauchemin
>> SQLskills
>>
>>
>> "tuned" wrote in message
>>
>> > We have an application that requires an ODBC connection for it to work
>> > successfully. I've set up 3 SQL 2005 servers to use db mirroring and
>> > the
>> > mirroring works fine. Trouble is I'm unable to get the clients to
>> > connect
>> > to
>> > the mirrored server without physically creating an ODBC connection to
>> > that
>> > server as well. I thought about creating a dns entry and then when the
>> > roles
>> > switch update dns with the new ip address. While that would work I
>> > don't
>> > think it's terribly efficient and it couldn't be done pro-actively
>> > since
>> > we'd
>> > have to wait for a user to report there was an error. I thought about
>> > creating duplicate entries with the ip addresses of the 2 servers but
>> > thinking about it wasn't sure that would work either since technically
>> > the
>> > failed primary (new mirror) would still respond.
>> >
>> > Am I missing a step in getting the clients to connect? They're all XP
>> > boxes
>> > and I've tried both the SQL Native Client as well as the SQL Server
>> > connection.
>>
>>
 >> Stay informed about: Possible to Create ODBC to mirrored DB's 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
32 bit odbc - Will the 32 bit odbc driver available on Windows Clients Operating systems communicate to a 64 bit SQL Server on Itanium?

ODBC connection. - Hello I can create a ODBC connection to another database which is not SQL Server. But when I want to choose a Integration Service Destination connection I am not given any ODBC connection type. I would like to transfer and transform data from a SQL..

ODBC Over WAN - I have been told by our consultant that we cannot access our SQL Server over the WAN without corrupting our data, is this true? Thanks for any help, David

not able to use failover in odbc - hey When i try to create odbc connection, i wanted use the failover sqlserver if the primary server in not available. I have configured mirroring between the databases in primary and secondary servers. But, it is not enabled and looks grayed. Can yo...

ODBC connection - I have a DTS package that runs fine, but I can not view any of the transform data tasks. When ever I try to view them it just times out. The SQL connection I can view and edit fine, but not the ODBC. Even if I try to make a new ODBC connection, it..
   Database Help (Home) -> ODBC All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]