Consider the following scenario:
Additionally, the TCP port for the principle server instance is set to the CLOSE_WAIT state on the client computer, and the corresponding TCP port is set to the FIN_WAIT_2 state on the principal server. If failover operations occur many times, all the ports of the client computer may be unavailable.
Note To check active connections, open a command prompt, type the following command, and the press Enter:
- You configure database mirroring between two instances of Microsoft SQL Server.
Note One instance is the principal server instance that contains the principal database, and the other instance is the mirror server instance that contains the mirror database. - You run a Microsoft .NET Framework 2.0–based application that uses the .NET Framework Data Provider for SQL Server (System.Data.SqlClient) to connect to the principle database from a client computer.
- A TCP port is used to establish a connection to the principal server instance from the client computer.
- You specify the failover partner in the connection string.
For example, you use the following code to configure the connection string:Data Source=<principal server instance>;Failover Partner=<mirror server instance>;Initial
Catalog=<database name>;Integrated Security=True;Network Library=dbmssocn - You perform a failover operation from the principal server instance to the mirror server instance.
Additionally, the TCP port for the principle server instance is set to the CLOSE_WAIT state on the client computer, and the corresponding TCP port is set to the FIN_WAIT_2 state on the principal server. If failover operations occur many times, all the ports of the client computer may be unavailable.
Note To check active connections, open a command prompt, type the following command, and the press Enter:
NetStat -n