You are currently offline, waiting for your internet to reconnect

FIX: Target endpoints in Service Broker of SQL Server 2005 leak in the valid message exchange pattern where the target sends only the end conversation message

Extended support for SQL Server 2005 ends on April 12, 2016

If you are still running SQL Server 2005 after April 12, 2016, you will no longer receive security updates and technical support. We recommend upgrading to SQL Server 2014 and Azure SQL Database to achieve breakthrough performance, maintain security and compliance, and optimize your data platform infrastructure. Learn more about the options for upgrading from SQL Server 2005 to a supported version here.

SYMPTOMS
Consider the following scenario. You have an application that uses Service Broker in Microsoft SQL Server 2005. The initiator and the target are in different databases on the same instance of SQL Server 2005. In the valid message exchange pattern where the target sends only the end conversation message, the sys.conversation_endpoints table shows that the target endpoint is in the CD state. Additionally, the target endpoint is deleted after the dialog lifetime expires.

Note The default value of the dialog lifetime is about 75 years.
CAUSE
If a target endpoint sends only the end conversation message, and the initiator and target are in different databases on the same instance of SQL Server 2005, the security time stamp on the target endpoint is not initialized. This causes the target endpoint to be not deleted when the conversation is ended. The target endpoint remains for about 75 years. If many target endpoints send only the end conversation message, the database that holds these target endpoints will become large. These undeleted target endpoints will adversely affect the performance of Service Broker and occupies lots of database space.
RESOLUTION

Service pack information

To resolve this problem, obtain the latest service pack for SQL Server 2005. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
913089 How to obtain the latest service pack for SQL Server 2005

WORKAROUND
To work around this problem, manually force the target to send a dummy message before the target sends the end conversation message.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in SQL Server 2005 Service Pack 3.
MORE INFORMATION
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
Properties

Article ID: 959009 - Last Review: 12/16/2008 00:47:03 - Revision: 1.0

Microsoft SQL Server 2005 Standard Edition, Microsoft SQL Server 2005 Developer Edition, Microsoft SQL Server 2005 Enterprise Edition, Microsoft SQL Server 2005 Standard X64 Edition, Microsoft SQL Server 2005 Standard Edition for Itanium-based Systems, Microsoft SQL Server 2005 Enterprise X64 Edition, Microsoft SQL Server 2005 Enterprise Edition for Itanium-based Systems, Microsoft SQL Server 2005 Workgroup Edition

  • kbsql2005servicebroker kbtshoot kbsql2005engine kbexpertiseadvanced kbfix kbbug KB959009
Feedback