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

Article translations Article translations
Article ID: 959009 - View products that this article applies to.
Expand all | Collapse all

On This Page

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: December 16, 2008 - Revision: 1.0
APPLIES TO
  • 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
Keywords: 
kbsql2005servicebroker kbtshoot kbsql2005engine kbexpertiseadvanced kbfix kbbug KB959009

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com