Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 295053 - Last Review: October 29, 2003 - Revision: 3.2
FIX: OPENXML May Leak Worktables in Memory
This article was previously published under Q295053
BUG #: 351736 (SHILOH_BUGS)
On This Page
SYMPTOMS
When you use OPENXML to expose XML data directly to Transact-SQL manipulation, the following error message may appear in your application error log:
clean_tables_xact: active sdes for tabid -170425569
CAUSE
This regression bug was first seen in Build 6805. The use of the Msxml.dll file version 2.6 with hotfixes for Build 6805 do not dereference SQLOLEDB calls from
IRowset to MSXML.
RESOLUTION
To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
290211Â
(http://kbalertz.com/Feedback.aspx?kbNumber=290211/EN-US/
)
INF: How to Obtain the Latest SQL Server 2000 Service Pack
WORKAROUND
Use the version of the Msxml2.dll file provided with SQL Server to prevent the memory leak.
STATUS
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.
MORE INFORMATION
Step to Reproduce Behavior
- Run the following script from the SQL Query Analyzer:
declare @strDoc nvarchar(2000)
set @strDoc = '<!DOCTYPE root [ <!ELEMENT root (row)*> <!ELEMENT row (subrow)*> <!ELEMENT subrow EMPTY><!ATTLIST row dd CDATA #FIXED "dd value">]><root><row dd="dd value"/><row></row></root>'
declare @h int
exec sp_xml_preparedocument @h output, @strDoc
select * from openxml(@h,'root/row',9) with (rid int '@mp:id',rparent int '@mp:parentid', dd char(10), xmltext ntext '@mp:xmltext')
exec sp_xml_removedocument @h
- Close the connection.
- Check the SQL Server error log.
APPLIES TO
- Microsoft SQL Server 2000 Standard Edition
- Microsoft XML Parser 2.6
| kbbug kbfix kbmsxmlnosweep kbsqlserv2000sp1fix KB295053 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please