connectionStrings add name="TestDB" providerName="System.Data.SqlClient" connectionString="data source=主体数据库地址; Failover Partner =镜像数据库地址;Integrated Security=false;database=TestDB;user=sa;password=123456"/ /connectionString s s>