I set up a database mirroring and then used this connectionstring to connect to it:
Data Source={0};Failover Partner={1};Initial Catalog=AdventureWorks;
Integrated Security=True;
After adding some data into database, I shutdown the principal server, so the mirror server becomes the principal server. I open the connection again, an get this error:
System.Data.SqlClient.SqlException: A transport-level error has
occurred when sending the request to the server. (provider: Shared Memory
Provider, error: 0 - No process is on the other end of the pipe.)
I thought that with Failover Partner specified in the connection string, ADO.NET would do the work for me. So what should I do now?
This question is urgent. Thank you so much for your help.