This article was previously published under Q285006
BUG #: 236142 (Shiloh_bug)
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
Date Version Size File name --------------------------------------------------- 01/23/2001 8.1.7123.0 688,912 Msxml2.dll 01/23/2001 8.1.7123.0 21,776 Msxml2a.dll 01/23/2001 8.1.7123.0 37,648 Msxml2r.dll 01/23/2001 8.1.7123.0 26,384 Xmlinst.exe
/** Begin Script for reproducing the problem **/
DROP PROCEDURE test_openxml
GO
CREATE PROCEDURE test_openxml
@i_xml text
AS
begin
declare @hr integer
declare @hdoc integer
exec @hr = sp_xml_preparedocument @hdoc output,@i_xml
if @hr = 0
begin
select datalength(value)
from openxml(@hdoc,'root/data',1) with(value text)
exec sp_xml_removedocument @hdoc
end
end
GO
EXEC test_openxml '<?xml version="1.0" encoding="UTF-8"?>
<root>
<data value="<insert at least 4000 characters here>"/>
</root>'
GO
/** End Script for reproducing the problem **/
Keywords: kbhotfixserver, kbbug, kbfix, kbmdac260sp1fix, kbmsxmlnosweep, kbqfe, kbsqlserv2000sp1fix, kbqfe, KB285006