开发者

How can I connect to a principal database when a failover occurs in SQL server 2005?

开发者 https://www.devze.com 2022-12-24 13:50 出处:网络
How can I connect to a principal database when a failover occurs in SQL server 2005 using TSQL.....after failover a pricipal database becomes mirror but still how can i connect to the new pricipal usi

How can I connect to a principal database when a failover occurs in SQL server 2005 using TSQL.....after failover a pricipal database becomes mirror but still how can i connect to the new pricipal using SQL comman开发者_如何学God


You need to change your connecction string to connect to the new principal.

There are two main ways to do this:

  1. Include the failover details in the first connection string, so the system will attempt to the original principal, fail to connect and then try the failover.

  2. Change the connection string either manually or on a failover, to use the failover server's details directly.

0

精彩评论

暂无评论...
验证码 换一张
取 消