<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Tips from the SQL Joes 2 Pros Development Series &#8211; Preparing XML in Memory &#8211; Day 34 of 35</title>
	<atom:link href="http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 23 May 2013 14:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Understanding XML &#8211; Contest Win Joes 2 Pros Combo (USD 198) &#8211; Day 5 of 5 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-327987</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Understanding XML &#8211; Contest Win Joes 2 Pros Combo (USD 198) &#8211; Day 5 of 5 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Fri, 10 Aug 2012 01:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-327987</guid>
		<description><![CDATA[[...] SQL Joes 2 Pros Development Series – Preparing XML in Memory [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL Joes 2 Pros Development Series – Preparing XML in Memory [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arvind</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-281844</link>
		<dc:creator><![CDATA[Arvind]]></dc:creator>
		<pubDate>Fri, 04 May 2012 09:20:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-281844</guid>
		<description><![CDATA[I ran the below command many times:

[quote]
Declare @hdoc int
exec sp_xml_preparedocument @hdoc output, @xmlFile

select @hdoc
[/quote]

Resulted in the value of @hdoc variable has been set to 72... 
Can you please tell me how can I reset it?]]></description>
		<content:encoded><![CDATA[<p>I ran the below command many times:</p>
<p>[quote]<br />
Declare @hdoc int<br />
exec sp_xml_preparedocument @hdoc output, @xmlFile</p>
<p>select @hdoc<br />
[/quote]</p>
<p>Resulted in the value of @hdoc variable has been set to 72&#8230;<br />
Can you please tell me how can I reset it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – A Guide to Integrating SQL Server with XML, C#, and PowerShell – Book Available for SQL Server Certification Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-166106</link>
		<dc:creator><![CDATA[SQL SERVER – A Guide to Integrating SQL Server with XML, C#, and PowerShell – Book Available for SQL Server Certification Journey to SQLAuthority]]></dc:creator>
		<pubDate>Wed, 07 Sep 2011 02:13:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-166106</guid>
		<description><![CDATA[[...] Q 34) SQL SERVER – Tips from the SQL Joes 2 Pros Development Series – Preparing XML in Memory – Day ... [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Q 34) SQL SERVER – Tips from the SQL Joes 2 Pros Development Series – Preparing XML in Memory – Day &#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165724</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Mon, 05 Sep 2011 16:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165724</guid>
		<description><![CDATA[&lt;p style=&quot;text-align:justify;&quot;&gt;A.) (1) The handle as an INT&lt;/p&gt;
&lt;p style=&quot;text-align:justify;&quot;&gt;Winner from USA&lt;b&gt;&lt;a href=&quot;http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-164943&quot; rel=&quot;nofollow&quot;&gt;Uday Bhoopalam&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align:justify;&quot;&gt;Winner from India: &lt;b&gt;&lt;a href=&quot;http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165065&quot; rel=&quot;nofollow&quot;&gt;Mitesh Modi&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;



I thank you all for participating here. The permanent record of this update is posted on &lt;a href=&quot;http://www.facebook.com/SQLAuth?sk=app_179191362131547&quot; rel=&quot;nofollow&quot;&gt;facebook&lt;/a&gt; page.]]></description>
		<content:encoded><![CDATA[<p style="text-align:justify;">A.) (1) The handle as an INT</p>
<p style="text-align:justify;">Winner from USA<b><a href="http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-164943" rel="nofollow">Uday Bhoopalam</a></b></p>
<p style="text-align:justify;">Winner from India: <b><a href="http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165065" rel="nofollow">Mitesh Modi</a></b></p>
<p>I thank you all for participating here. The permanent record of this update is posted on <a href="http://www.facebook.com/SQLAuth?sk=app_179191362131547" rel="nofollow">facebook</a> page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vaishali jain</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165633</link>
		<dc:creator><![CDATA[vaishali jain]]></dc:creator>
		<pubDate>Mon, 05 Sep 2011 10:45:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165633</guid>
		<description><![CDATA[sp_XML_PrepareDocument stored procedure requires a parameter that is an XML data type. What is the output parameter for?
 
Correct answer is :The handle as an INT which represents in memory location of the parsed XML document in SQL server.

my previous post doesnot include country of residence.

Vaishali Jain
Hyderabad, india]]></description>
		<content:encoded><![CDATA[<p>sp_XML_PrepareDocument stored procedure requires a parameter that is an XML data type. What is the output parameter for?</p>
<p>Correct answer is :The handle as an INT which represents in memory location of the parsed XML document in SQL server.</p>
<p>my previous post doesnot include country of residence.</p>
<p>Vaishali Jain<br />
Hyderabad, india</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vaishali</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165627</link>
		<dc:creator><![CDATA[vaishali]]></dc:creator>
		<pubDate>Mon, 05 Sep 2011 10:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165627</guid>
		<description><![CDATA[sp_XML_PrepareDocument stored procedure requires a parameter that is an XML data type. What is the output parameter for?
 
Correct answer is :The handle as an INT which represents in memory location of the parsed XML document in SQL server.]]></description>
		<content:encoded><![CDATA[<p>sp_XML_PrepareDocument stored procedure requires a parameter that is an XML data type. What is the output parameter for?</p>
<p>Correct answer is :The handle as an INT which represents in memory location of the parsed XML document in SQL server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165596</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 05 Sep 2011 08:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165596</guid>
		<description><![CDATA[Option 1

1.The handle as an INT

Country : India]]></description>
		<content:encoded><![CDATA[<p>Option 1</p>
<p>1.The handle as an INT</p>
<p>Country : India</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh Mohanrangan</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165583</link>
		<dc:creator><![CDATA[Rajesh Mohanrangan]]></dc:creator>
		<pubDate>Mon, 05 Sep 2011 07:34:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165583</guid>
		<description><![CDATA[correct answer:Option 1

Regards
Rajesh
From india]]></description>
		<content:encoded><![CDATA[<p>correct answer:Option 1</p>
<p>Regards<br />
Rajesh<br />
From india</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudhir Chawla</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165347</link>
		<dc:creator><![CDATA[Sudhir Chawla]]></dc:creator>
		<pubDate>Sun, 04 Sep 2011 07:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165347</guid>
		<description><![CDATA[Hi,

Option 1 is correct.

Thanks

Sudhir Chawla
New Delhi, India]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Option 1 is correct.</p>
<p>Thanks</p>
<p>Sudhir Chawla<br />
New Delhi, India</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nakul Vachhrajani</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165346</link>
		<dc:creator><![CDATA[Nakul Vachhrajani]]></dc:creator>
		<pubDate>Sun, 04 Sep 2011 07:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165346</guid>
		<description><![CDATA[The other parameter is #1 - The handle as an INT - which is the correct answer to the question.

Country of residence: India]]></description>
		<content:encoded><![CDATA[<p>The other parameter is #1 &#8211; The handle as an INT &#8211; which is the correct answer to the question.</p>
<p>Country of residence: India</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naomi</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165263</link>
		<dc:creator><![CDATA[Naomi]]></dc:creator>
		<pubDate>Sun, 04 Sep 2011 01:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165263</guid>
		<description><![CDATA[As well explained in the article, the correct answer to this question is #1

The handle as an INT

I am from USA

Thanks for sharing the knowledge]]></description>
		<content:encoded><![CDATA[<p>As well explained in the article, the correct answer to this question is #1</p>
<p>The handle as an INT</p>
<p>I am from USA</p>
<p>Thanks for sharing the knowledge</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudeepta Ganguly</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165211</link>
		<dc:creator><![CDATA[Sudeepta Ganguly]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 20:29:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165211</guid>
		<description><![CDATA[The correct answer is:
1.The handle as an INT

Sudeepta,
India]]></description>
		<content:encoded><![CDATA[<p>The correct answer is:<br />
1.The handle as an INT</p>
<p>Sudeepta,<br />
India</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Pepping</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165185</link>
		<dc:creator><![CDATA[Bill Pepping]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 18:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165185</guid>
		<description><![CDATA[Hi Pinal,
 
Challenge:
Question 34
The sp_XML_PrepareDocument stored procedure requires a parameter that is an XML data type. What is the output 

parameter for?

1.The handle as an INT
2.The handle as an XML
3.The handle as a Varchar


Correct Answer:
The correct choice is #1:  The handle as an INT


Explanation:
sp_XML_PrepareDocument requires two parameters.  The first parameter is an INTEGER that is declared as OUTPUT.  This parameter will be the handle to use in further queries to retrieve the XML data you want.  The second 
parameter for sp_XML_PrepareDocument is the variable defined as type XML, with contains the XML data you want to store in SQL Server&#039;s memory.


Country:
United States
 
Thanks for the knowledge!
 
Regards,
 
Bill Pepping]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Challenge:<br />
Question 34<br />
The sp_XML_PrepareDocument stored procedure requires a parameter that is an XML data type. What is the output </p>
<p>parameter for?</p>
<p>1.The handle as an INT<br />
2.The handle as an XML<br />
3.The handle as a Varchar</p>
<p>Correct Answer:<br />
The correct choice is #1:  The handle as an INT</p>
<p>Explanation:<br />
sp_XML_PrepareDocument requires two parameters.  The first parameter is an INTEGER that is declared as OUTPUT.  This parameter will be the handle to use in further queries to retrieve the XML data you want.  The second<br />
parameter for sp_XML_PrepareDocument is the variable defined as type XML, with contains the XML data you want to store in SQL Server&#8217;s memory.</p>
<p>Country:<br />
United States</p>
<p>Thanks for the knowledge!</p>
<p>Regards,</p>
<p>Bill Pepping</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sonam Duseja</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165165</link>
		<dc:creator><![CDATA[Sonam Duseja]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 15:59:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165165</guid>
		<description><![CDATA[correct option is #1]]></description>
		<content:encoded><![CDATA[<p>correct option is #1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Basavaraj Biradar</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165164</link>
		<dc:creator><![CDATA[Basavaraj Biradar]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 15:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165164</guid>
		<description><![CDATA[Correct Answer is: Option 1

Thanks,
Basavaraj
India]]></description>
		<content:encoded><![CDATA[<p>Correct Answer is: Option 1</p>
<p>Thanks,<br />
Basavaraj<br />
India</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dilipkumarjena</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165150</link>
		<dc:creator><![CDATA[dilipkumarjena]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 14:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165150</guid>
		<description><![CDATA[The correct option for the above question is Option 1)
The handle as an INT

Explanation
Reads the Extensible Markup Language (XML) text provided as input, then parses the text using the MSXML parser (Msxml2.dll), and provides the parsed document in a state ready for consumption. This parsed document is a tree representation of the various nodes (elements, attributes, text, comments, and so on) in the XML document.

sp_xml_preparedocument returns a handle that can be used to access the newly created internal representation of the XML document. This handle is valid for the duration of the connection to Microsoft® SQL Server™ 2000, until the connection is reset, or until the handle is invalidated by executing sp_xml_removedocument.

Note  A parsed document is stored in the internal cache of SQL Server 2000. The MSXML parser uses one-eighth the total memory available for SQL Server. To avoid running out of memory, run sp_xml_removedocument to free up the memory.

Syntax

sp_xml_preparedocument hdoc OUTPUT
[, xmltext]
[, xpath_namespaces]

Arguments

hdoc

Is the handle to the newly created document. hdoc is an integer.

[xmltext]

Is the original XML document. The MSXML parser parses this XML document.  xmltext is a text (char, nchar, varchar, nvarchar, text, or ntext) parameter. The default value is NULL, in which case an internal representation of an empty XML document is created.

[xpath_namespaces]

Specifies the namespace declarations that are used in row and column XPath expressions in OPENXML. The default value is .
xpath_namespaces provides the namespace URIs for the prefixes used in the XPath expressions in OPENXML by means of a well-formed XML document. xpath_namespaces declares the prefix that must be used to refer to the namespace urn:schemas-microsoft-com:xml-metaprop, which provides meta data about the parsed XML elements. Although you can redefine the namespace prefix for the metaproperty namespace using this technique, this namespace is not lost. The prefix mp is still valid for urn:schemas-microsoft-com:xml-metaprop even if xpath_namespaces contains no such declaration. xpath_namespaces is a text (char, nchar, varchar, nvarchar, text, or ntext) parameter.


Dilip Kumar Jena
Country : INDIA]]></description>
		<content:encoded><![CDATA[<p>The correct option for the above question is Option 1)<br />
The handle as an INT</p>
<p>Explanation<br />
Reads the Extensible Markup Language (XML) text provided as input, then parses the text using the MSXML parser (Msxml2.dll), and provides the parsed document in a state ready for consumption. This parsed document is a tree representation of the various nodes (elements, attributes, text, comments, and so on) in the XML document.</p>
<p>sp_xml_preparedocument returns a handle that can be used to access the newly created internal representation of the XML document. This handle is valid for the duration of the connection to Microsoft® SQL Server™ 2000, until the connection is reset, or until the handle is invalidated by executing sp_xml_removedocument.</p>
<p>Note  A parsed document is stored in the internal cache of SQL Server 2000. The MSXML parser uses one-eighth the total memory available for SQL Server. To avoid running out of memory, run sp_xml_removedocument to free up the memory.</p>
<p>Syntax</p>
<p>sp_xml_preparedocument hdoc OUTPUT<br />
[, xmltext]<br />
[, xpath_namespaces]</p>
<p>Arguments</p>
<p>hdoc</p>
<p>Is the handle to the newly created document. hdoc is an integer.</p>
<p>[xmltext]</p>
<p>Is the original XML document. The MSXML parser parses this XML document.  xmltext is a text (char, nchar, varchar, nvarchar, text, or ntext) parameter. The default value is NULL, in which case an internal representation of an empty XML document is created.</p>
<p>[xpath_namespaces]</p>
<p>Specifies the namespace declarations that are used in row and column XPath expressions in OPENXML. The default value is .<br />
xpath_namespaces provides the namespace URIs for the prefixes used in the XPath expressions in OPENXML by means of a well-formed XML document. xpath_namespaces declares the prefix that must be used to refer to the namespace urn:schemas-microsoft-com:xml-metaprop, which provides meta data about the parsed XML elements. Although you can redefine the namespace prefix for the metaproperty namespace using this technique, this namespace is not lost. The prefix mp is still valid for urn:schemas-microsoft-com:xml-metaprop even if xpath_namespaces contains no such declaration. xpath_namespaces is a text (char, nchar, varchar, nvarchar, text, or ntext) parameter.</p>
<p>Dilip Kumar Jena<br />
Country : INDIA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deb</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165147</link>
		<dc:creator><![CDATA[Deb]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 14:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165147</guid>
		<description><![CDATA[Answer is #1 The handle as an INT

The handle serves as our &quot;claim ticket&quot; for getting the data back.

Pretty cool, thanks!

USA]]></description>
		<content:encoded><![CDATA[<p>Answer is #1 The handle as an INT</p>
<p>The handle serves as our &#8220;claim ticket&#8221; for getting the data back.</p>
<p>Pretty cool, thanks!</p>
<p>USA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudhir Chawla</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165144</link>
		<dc:creator><![CDATA[Sudhir Chawla]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 14:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165144</guid>
		<description><![CDATA[Hi,

Option 1 is correct.

Thanks
Sudhir Chawla
New Delhi, India]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Option 1 is correct.</p>
<p>Thanks<br />
Sudhir Chawla<br />
New Delhi, India</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gordon Kane</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165141</link>
		<dc:creator><![CDATA[Gordon Kane]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 14:18:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165141</guid>
		<description><![CDATA[1.The handle as an INT

Gordon Kane
Allen tX
USA]]></description>
		<content:encoded><![CDATA[<p>1.The handle as an INT</p>
<p>Gordon Kane<br />
Allen tX<br />
USA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165126</link>
		<dc:creator><![CDATA[Don]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 13:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165126</guid>
		<description><![CDATA[Option 1 is correct.

Country: United States]]></description>
		<content:encoded><![CDATA[<p>Option 1 is correct.</p>
<p>Country: United States</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemanth</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165106</link>
		<dc:creator><![CDATA[Hemanth]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 11:56:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165106</guid>
		<description><![CDATA[Option 1 - is correct answer

Since we need to get the handle number(i.e claim ticket) of the xml saved in the memory, and our handle will be an integer and even to open the ticket we need the int handle

Hyderabad,
India]]></description>
		<content:encoded><![CDATA[<p>Option 1 &#8211; is correct answer</p>
<p>Since we need to get the handle number(i.e claim ticket) of the xml saved in the memory, and our handle will be an integer and even to open the ticket we need the int handle</p>
<p>Hyderabad,<br />
India</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalyanasundaram.K</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165094</link>
		<dc:creator><![CDATA[Kalyanasundaram.K]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 10:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165094</guid>
		<description><![CDATA[Correct Answer : option 1

33) The sp_XML_PrepareDocument stored procedure requires a parameter that is an XML data type. What is the output parameter for?

    1) The handle as an INT

   First parameter integer holds the handle value of XML data passed in second parameter. using this integer value in openXml function to get rowset of records.

Chennai, TamilNadu, India]]></description>
		<content:encoded><![CDATA[<p>Correct Answer : option 1</p>
<p>33) The sp_XML_PrepareDocument stored procedure requires a parameter that is an XML data type. What is the output parameter for?</p>
<p>    1) The handle as an INT</p>
<p>   First parameter integer holds the handle value of XML data passed in second parameter. using this integer value in openXml function to get rowset of records.</p>
<p>Chennai, TamilNadu, India</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajneesh Verma</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165082</link>
		<dc:creator><![CDATA[Rajneesh Verma]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 09:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165082</guid>
		<description><![CDATA[AS per description&quot;: &quot;We will send our XML document into memory and in exchange we will get back the handle in the form of an integer. &quot;

Option 1 is the correct Answer &quot;The handle as an INT&quot;

Thanks...
Rajneesh Verma
(INDIA)]]></description>
		<content:encoded><![CDATA[<p>AS per description&#8221;: &#8220;We will send our XML document into memory and in exchange we will get back the handle in the form of an integer. &#8221;</p>
<p>Option 1 is the correct Answer &#8220;The handle as an INT&#8221;</p>
<p>Thanks&#8230;<br />
Rajneesh Verma<br />
(INDIA)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miteshmca</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165065</link>
		<dc:creator><![CDATA[miteshmca]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 09:18:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165065</guid>
		<description><![CDATA[ANS : 1
(1) The handle as an INT

As According To MSDN :
/*
sp_xml_preparedocument
hdoc 
OUTPUT
[ , xmltext ]
[ , xpath_namespaces ] 

hdoc
Is the handle to the newly created document. hdoc is an integer.
*/

Declare @hdoc integer
Declare @Doc xml
--Set @Doc with required xml
EXEC sp_xml_preparedocument @hdoc OUTPUT, @Doc

when you send an XML document to be tailored into memory, SQL Server gives you a claim number (called a handle)  in the form of an integer which you need later when referring to that document.

Mitesh Modi
(India)]]></description>
		<content:encoded><![CDATA[<p>ANS : 1<br />
(1) The handle as an INT</p>
<p>As According To MSDN :<br />
/*<br />
sp_xml_preparedocument<br />
hdoc<br />
OUTPUT<br />
[ , xmltext ]<br />
[ , xpath_namespaces ] </p>
<p>hdoc<br />
Is the handle to the newly created document. hdoc is an integer.<br />
*/</p>
<p>Declare @hdoc integer<br />
Declare @Doc xml<br />
&#8211;Set @Doc with required xml<br />
EXEC sp_xml_preparedocument @hdoc OUTPUT, @Doc</p>
<p>when you send an XML document to be tailored into memory, SQL Server gives you a claim number (called a handle)  in the form of an integer which you need later when referring to that document.</p>
<p>Mitesh Modi<br />
(India)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: P.Anish Shenoy</title>
		<link>http://blog.sqlauthority.com/2011/09/03/sql-server-tips-from-the-sql-joes-2-pros-development-series-preparing-xml-in-memory-day-34-of-35/#comment-165053</link>
		<dc:creator><![CDATA[P.Anish Shenoy]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 08:49:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=14176#comment-165053</guid>
		<description><![CDATA[1.The handle as an INT is the correct answer

Explanation :

sp_XML_PrepareDocument which is a system supplied stored procedure reads the xml which is given as a input, parses it and stores it in the internal cache of SQL Server and returns a reference number which is the Handle to the newly created xml document.

This handle number is used as a reference.

More information on this is available in the link below :

http://msdn.microsoft.com/en-us/library/ms187367.aspx

Thanks for this post.

Best Regards,
P.Anish Shenoy,
INDIA.]]></description>
		<content:encoded><![CDATA[<p>1.The handle as an INT is the correct answer</p>
<p>Explanation :</p>
<p>sp_XML_PrepareDocument which is a system supplied stored procedure reads the xml which is given as a input, parses it and stores it in the internal cache of SQL Server and returns a reference number which is the Handle to the newly created xml document.</p>
<p>This handle number is used as a reference.</p>
<p>More information on this is available in the link below :</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms187367.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms187367.aspx</a></p>
<p>Thanks for this post.</p>
<p>Best Regards,<br />
P.Anish Shenoy,<br />
INDIA.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
