|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 8:54 AM
Points: 17,
Visits: 52
|
|
Hi, We use database mirroring in sql server 2008 r2. We have 1 primary server and 1 mirror server. Our application connect to the primary instance with ip address. If our primary server is down and we failover to the mirror server, Our application will not be able to connect. Our plan is to put the ip address of the old primary server to the mirror (new primary). BUT, Does changing the ip address will confuse the database mirroring setting ? Can we do that if we think about the endpoint config ?
regards,
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 8:25 AM
Points: 37,683,
Visits: 29,938
|
|
Read up on "Transparent Client Redirect". If you're using ADO.net or SNAC to connect, you don't need to do any of what you're suggesting.
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 8:54 AM
Points: 17,
Visits: 52
|
|
| Okay, but if we do not use ADO or SNAC, can we change the ip address of the mirror wihtout confuse the database mirroring or should we instead change the connectivity on the application side ?
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 8:25 AM
Points: 37,683,
Visits: 29,938
|
|
No, don't mess with the IP on the mirror.
Read up on transparent client redirect first. You could also give the app both server's names to try, or do a DNS change when there's a failover.
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Monday, April 29, 2013 4:03 AM
Points: 81,
Visits: 824
|
|
In Database mirroring ,mirror server name should be specified in two modes.
1.Implicit mode
No need to specify failover partner here.By the use of SQL provider ,failover will done with mirror server identification from the memory cache,
2.Explicit mode
We need to specify failover partner in the connection string. Failover Partner=<servername>” (where <servername> is the name of your mirror server).
Regards, Kumar http://www.sqldbatask.blogspot.com/
|
|
|
|