The mirroring connection has timed out for database after 10 seconds without a response, mirroring_connection_timeout

Problem

SQL Server 2005 database mirroring is not working. Automatic failover does not happen when the principal or mirror servers are down. You will get the following error messages in the event logs.

	Event Type:	Error
	Event Source:	MSSQLSERVER
	Event Category:	(2)
	Event ID:	1479
	Date:		4/24/2008
	Time:		12:00:43 AM
	User:		N/A
	Description:
	The mirroring connection to "TCP://xxxx.yourdomain.com:5022" has timed out 
	for database "yourdatabase" after 10 seconds without a response.  
	Check the service and network connections.
	

Solution

The default mirroring time out value is 10 seconds. You need to increase this number if you have more and more database transactions.

  1. Open your principal database with SQL Server Management Studio.
  2. Open a new SQL query windows and execute the following statement
		ALTER DATABASE yourdatabase SET PARTNER TIMEOUT 30
	

Related Resources

Navigator

Other Knowledgebase Articles

Shared Hosting

# of Domains: 2
# of SQL Server Databases: 2
Disk Space: Unlimited
Bandwidth: Unlimited
Email: Unlimited
SQL Server 2008 R2
Monthly: $4.99
More Information About Unlimited Shared Windows Hosting Plan

Windows Hyper-V Server

Dedicated Memory:2GB
Disk Space: 200GB
Bandwidth: Unlimited
Windows 2008/2003: Free
Monthly: $49.99
More Information About Unlimited Windows Hyper-V Server

Dedicated SQL Server

CPU: Intel Dual-Core Sandy Bridge I3-2100
RAM: 8GB RAM
Disk: 2x320GB SATA
RAID: Host RAID 1
Bandwidth: Unlimited
Windows 2008/2003: Free
Monthly: $99.00
More Information About Unlimited Dedicated SQL Server