With SQL Server database mirroring, do we need to take care of something in our ASP.Net applications or does it only require a connection string change in web.config?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depends on the configuration of the mirroring; as to whether you have automatic failover setup, etc.
If you have failover enabled, the connection string will stay the same as it should just point to the virtual IP of the failover using DNS or directly.
If not, you may have to change it to whichever host is active at that point.
As far as the application is concerned, it just needs to know where it gets it’s data from and this is the connection string from web.config.