Im stuck with a connection string issue

this is my connection string.

<add name="APP01" connectionString="Server=; Failover Partner=; Initial Catalog=DB2017; Integrated Security=True" providerName="System.Data.SqlClient" />

If I do sql server mirroring failover, the application is not connecting to new primary server. Still all the connections goes to old primary.

  • Is the application reconnecting after the failover, or does it just continue to try to use the existing connections that are failing? The application needs to reconnect once the connection to the old primary is broken, and then it should connect to the new primary. – Tony Hinkle May 25 at 1:37
  • It's reconnecting to old primary. – Bhuvanesh May 25 at 2:56
  • What is database state at, after you fail-over? Are you able to connect database at mirror server? Have you synchronized all the credentials? Please check firewall settings at mirror server. – Rajesh Ranjan May 27 at 9:11
  • Logs are in sync. After failover the is changed to primary. No firewalls. – Bhuvanesh May 27 at 9:24
  • please try ipconfig /flushdns at application server. – Rajesh Ranjan May 27 at 11:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.