<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Composing XML from HIERARCHYID in T-SQL</title><link>http://sqlblog.com/blogs/peter_debetta/archive/2010/02/17/converting-hierarchyid-to-xml-in-t-sql.aspx</link><description>Now that I've discussed converting XML into a set of HIERARCHYID values I thought I'd try to reverse the process... Not sure if you’ve attempted to convert a table with HIERARCHYID to an XML representation, and if you have, I’m sure you’ve experienced</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Composing XML from HIERARCHYID in T-SQL</title><link>http://sqlblog.com/blogs/peter_debetta/archive/2010/02/17/converting-hierarchyid-to-xml-in-t-sql.aspx#22412</link><pubDate>Thu, 18 Feb 2010 03:54:46 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:22412</guid><dc:creator>Peter W. DeBetta</dc:creator><description>&lt;p&gt;Well I finally got around to testing with a larger set of data (9000 rows) and the inserts into the XML get logarithmically slower as you process through the cursor. &lt;/p&gt;
&lt;p&gt;For about 1000 rows or less, it works fine. For up to 2000 rows, much slower, and after that, it's intolerable.&lt;/p&gt;
</description></item></channel></rss>