<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4282222233168200124.comments</id><updated>2012-05-24T14:07:21.127-04:00</updated><category term='Denali'/><category term='CLR'/><category term='nested set'/><category term='cross-tab'/><category term='books'/><category term='pivot'/><category term='archive history data'/><category term='sql server connectivity'/><category term='SQL Server 2012'/><category term='row number'/><category term='date'/><category term='common table expressions'/><category term='sql injection'/><category term='sql server express'/><category term='blob'/><category term='sql server 2008'/><category term='trees'/><category term='SQLSaturday'/><category term='image'/><category term='64 bit'/><category term='performance tuning'/><category term='xml'/><category term='sql server compact'/><category term='adjacency list'/><category term='refactoring'/><category term='security'/><category term='best practices'/><category term='import data'/><category term='hierarchy'/><category term='daylight saving time'/><category term='set based'/><category term='PASS'/><category term='sql server'/><category term='service pack'/><category term='time'/><category term='style'/><category term='geometry'/><category term='recursive CTE'/><category term='filestream'/><category term='unpivot'/><category term='joins'/><category term='sql'/><category term='SQL Server 2011'/><category term='spatial'/><category term='geography'/><category term='t-sql programming'/><category term='datetime'/><category term='SQLRally'/><category term='bulk load'/><category term='Excel'/><title type='text'>Zen of SQL</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://pratchev.blogspot.com/feeds/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/comments/default'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/comments/default?start-index=26&amp;max-results=25'/><author><name>Plamen Ratchev</name><uri>http://www.blogger.com/profile/02027705815827955614</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_xSJ2NVXK3d0/TEDSRw15A_I/AAAAAAAAACY/4kesPlCdN3w/S220/Plamen_c_113.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>289</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-7345788060537188822</id><published>2012-04-20T18:39:43.100-04:00</published><updated>2012-04-20T18:39:43.100-04:00</updated><title type='text'>Hi I have two questions:
1. How do you change your...</title><content type='html'>Hi I have two questions:&lt;br /&gt;1. How do you change your below example into creating the table as well. I saw a post above stating select *... into, but I cant get it to work&lt;br /&gt;&lt;br /&gt;INSERT INTO &lt;br /&gt;Products &lt;br /&gt;(sku, product_desc) &lt;br /&gt;SELECT X.product.query(&amp;#39;SKU&amp;#39;).value(&amp;#39;.&amp;#39;, &amp;#39;INT&amp;#39;),&lt;br /&gt;       X.product.query(&amp;#39;Desc&amp;#39;).value(&amp;#39;.&amp;#39;, &amp;#39;VARCHAR(30)&amp;#39;)&lt;br /&gt;FROM ( &lt;br /&gt; SELECT CAST(x AS XML)&lt;br /&gt; FROM &lt;br /&gt; OPENROWSET&lt;br /&gt;  (     &lt;br /&gt;   BULK &amp;#39;C:\Products.xml&amp;#39;, SINGLE_BLOB&lt;br /&gt;  ) AS T(x)&lt;br /&gt;     ) AS T(x)CROSS APPLY x.nodes(&amp;#39;Products/Product&amp;#39;) AS X(product);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. if I have an xml file like below:&lt;br /&gt;&lt;br /&gt;    car&lt;br /&gt;    &lt;br /&gt;         1&lt;br /&gt;         01/02/12&lt;br /&gt;         2&lt;br /&gt;         05/04/12&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;which as you can see has different hierarchy of data, how can the price history information be stored in another table called price_history which links to the product</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/7345788060537188822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/7345788060537188822'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1334961583100#c7345788060537188822' title=''/><author><name>hussain rizvi</name><uri>http://www.blogger.com/profile/05032437625695256648</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-772261894'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='April 20, 2012 6:39 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-1293703194740792224</id><published>2012-04-04T13:44:52.391-04:00</published><updated>2012-04-04T13:44:52.391-04:00</updated><title type='text'>Please find below the complete XML format I was re...</title><content type='html'>Please find below the complete XML format I was referencing in last comment:&lt;br /&gt;&lt;br /&gt;&amp;lt;*Products*&amp;gt;&lt;br /&gt;    &amp;lt;*Product*&amp;gt;&lt;br /&gt;        &amp;lt;*entry colname=&amp;quot;SKU&amp;quot;*&amp;gt;1&amp;lt;*/entry*&amp;gt;&lt;br /&gt;        &amp;lt;*entry colname=&amp;quot;Desc&amp;quot;*&amp;gt;Book&amp;lt;*/entry*&amp;gt;&lt;br /&gt;    &amp;lt;*/Product*&amp;gt;&lt;br /&gt;    &amp;lt;*Product*&amp;gt;&lt;br /&gt;        &amp;lt;*entry colname=&amp;quot;SKU&amp;quot;*&amp;gt;2&amp;lt;*/entry*&amp;gt;&lt;br /&gt;        &amp;lt;*entry colname=&amp;quot;Desc&amp;quot;*&amp;gt;DVD&amp;lt;*/entry*&amp;gt;&lt;br /&gt;    &amp;lt;*/Product*&amp;gt;&lt;br /&gt;    &amp;lt;*Product*&amp;gt;&lt;br /&gt;        &amp;lt;*entry colname=&amp;quot;SKU&amp;quot;*&amp;gt;3&amp;lt;*/entry*&amp;gt;&lt;br /&gt;        &amp;lt;*entry colname=&amp;quot;Desc&amp;quot;*&amp;gt;Video&amp;lt;*/entry*&amp;gt;&lt;br /&gt;    &amp;lt;*/Product*&amp;gt;&lt;br /&gt;&amp;lt;*/Products*&amp;gt;&lt;br /&gt;&lt;br /&gt;Thanks again!&lt;br /&gt;Khaled</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/1293703194740792224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/1293703194740792224'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1333561492391#c1293703194740792224' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-344526287'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='April 4, 2012 1:44 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-4226376153451770511</id><published>2012-04-04T13:34:42.491-04:00</published><updated>2012-04-04T13:34:42.491-04:00</updated><title type='text'>Thanks Plamen for your great article!

I appreciat...</title><content type='html'>Thanks Plamen for your great article!&lt;br /&gt;&lt;br /&gt;I appreciate your feedback on what to modify in the query to parse an XML in the following format, where node names repeat, and are distinguished by their attribute values, yet also include the inline values I want to pull:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;    1&lt;br /&gt;    Book&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;    2&lt;br /&gt;    DVD&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;    3&lt;br /&gt;    Video&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I realize that you have addressed the extraction of attribute values in the Shredding XML article, but I couldn&amp;#39;t locate details on how to handle my particular case.  &lt;br /&gt; &lt;br /&gt;Thanks again for all your help!&lt;br /&gt;Khaled</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/4226376153451770511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/4226376153451770511'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1333560882491#c4226376153451770511' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-344526287'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='April 4, 2012 1:34 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-2687784261238603532</id><published>2012-04-02T21:55:32.164-04:00</published><updated>2012-04-02T21:55:32.164-04:00</updated><title type='text'>Reza,
The best is to create a calendar table. See ...</title><content type='html'>Reza,&lt;br /&gt;The best is to create a calendar table. See the following link for more details: http://pratchev.blogspot.com/2007/12/auxiliary-tables.html. You can add the civic holidays to the calendar table and then calculation is a trivial query to sum the work hours between two dates.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/3523011100524331767/comments/default/2687784261238603532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/3523011100524331767/comments/default/2687784261238603532'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/01/calculating-work-hours.html?showComment=1333418132164#c2687784261238603532' title=''/><author><name>Plamen Ratchev</name><uri>http://www.blogger.com/profile/02027705815827955614</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_xSJ2NVXK3d0/TEDSRw15A_I/AAAAAAAAACY/4kesPlCdN3w/S220/Plamen_c_113.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/01/calculating-work-hours.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-3523011100524331767' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/3523011100524331767' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1683880407'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='April 2, 2012 9:55 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-8665441060870412822</id><published>2012-04-02T19:07:40.500-04:00</published><updated>2012-04-02T19:07:40.500-04:00</updated><title type='text'>Do you have any thought about how to include civic...</title><content type='html'>Do you have any thought about how to include civic holidays to this logic as well? thx!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/3523011100524331767/comments/default/8665441060870412822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/3523011100524331767/comments/default/8665441060870412822'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/01/calculating-work-hours.html?showComment=1333408060500#c8665441060870412822' title=''/><author><name>Reza</name><uri>http://www.blogger.com/profile/03126663540855059564</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/01/calculating-work-hours.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-3523011100524331767' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/3523011100524331767' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1911034160'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='April 2, 2012 7:07 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-3484629274298365414</id><published>2012-03-29T06:47:44.192-04:00</published><updated>2012-03-29T06:47:44.192-04:00</updated><title type='text'>Hi,

Ignore previous post. Here we can see data hi...</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;Ignore previous post. Here we can see data hierarchy properly.&lt;br /&gt;&lt;br /&gt;We have xml in which we do have hierarchy like: -&lt;br /&gt;&lt;br /&gt;topics&lt;br /&gt;--topic&lt;br /&gt;----term&lt;br /&gt;----subtopic&lt;br /&gt;------term&lt;br /&gt;----subtopic&lt;br /&gt;------term&lt;br /&gt;--topic&lt;br /&gt;topics&lt;br /&gt;&lt;br /&gt;What I need to do is extract data from term under topic and put it under one column and then extract data from all subtopic/term under one topic and append them (separated by |) and put them under another column.&lt;br /&gt;&lt;br /&gt;Topic Subtopics&lt;br /&gt;----- ----------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Can anyone please let us know how to achieve same with the help of Stored Procedure.&lt;br /&gt;Thanks in advance.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/3484629274298365414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/3484629274298365414'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1333018064192#c3484629274298365414' title=''/><author><name>Pradeep Thorat</name><uri>http://www.blogger.com/profile/17571027937513014811</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1514745657'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='March 29, 2012 6:47 AM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-4435943894192412167</id><published>2012-03-29T06:44:26.711-04:00</published><updated>2012-03-29T06:44:26.711-04:00</updated><title type='text'>Hi,

We have xml in which we do have hierarchy lik...</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;We have xml in which we do have hierarchy like: - &lt;br /&gt;&lt;br /&gt;topics&lt;br /&gt;   topic&lt;br /&gt;       term&lt;br /&gt;       subtopic&lt;br /&gt;           term&lt;br /&gt;       subtopic&lt;br /&gt;           term&lt;br /&gt;   topic&lt;br /&gt;topics&lt;br /&gt;What I need to do is extract data from term under topic and put it under one column and then extract data from all subtopic/term under one topic and append them (separated by |) and put them under another column.&lt;br /&gt;&lt;br /&gt;Topic   Subtopics&lt;br /&gt;-----   ----------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Can anyone please let us know how to achieve same with the help of Stored Procedure.&lt;br /&gt;Thanks in advance.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/4435943894192412167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/4435943894192412167'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1333017866711#c4435943894192412167' title=''/><author><name>Pradeep Thorat</name><uri>http://www.blogger.com/profile/17571027937513014811</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1514745657'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='March 29, 2012 6:44 AM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-1811536332479660974</id><published>2012-03-29T06:13:15.220-04:00</published><updated>2012-03-29T06:13:15.220-04:00</updated><title type='text'></title><content type='html'>This comment has been removed by the author.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/1811536332479660974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/1811536332479660974'/><author><name>Pradeep Thorat</name><uri>http://www.blogger.com/profile/17571027937513014811</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.contentRemoved' value='true'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1514745657'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='March 29, 2012 6:13 AM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-3789573102696398439</id><published>2012-03-11T22:03:49.127-04:00</published><updated>2012-03-11T22:03:49.127-04:00</updated><title type='text'>Yes, this is documented in MSDN and SQL Server BOL...</title><content type='html'>Yes, this is documented in MSDN and SQL Server BOL:&lt;br /&gt;http://msdn.microsoft.com/en-us/library/ms190312.aspx&lt;br /&gt;http://msdn.microsoft.com/en-us/library/ms191184.aspx</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/3789573102696398439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/3789573102696398439'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1331517829127#c3789573102696398439' title=''/><author><name>Plamen Ratchev</name><uri>http://www.blogger.com/profile/02027705815827955614</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_xSJ2NVXK3d0/TEDSRw15A_I/AAAAAAAAACY/4kesPlCdN3w/S220/Plamen_c_113.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1683880407'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='March 11, 2012 10:03 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-6649583451619482644</id><published>2012-03-11T19:28:50.771-04:00</published><updated>2012-03-11T19:28:50.771-04:00</updated><title type='text'>It works, but I can not find any books that talk a...</title><content type='html'>It works, but I can not find any books that talk about it in more detail. I guess its something you have learn yourself from the MSDN library?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/6649583451619482644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/6649583451619482644'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1331508530771#c6649583451619482644' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-780155251'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='March 11, 2012 7:28 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-8568424538860276540</id><published>2012-03-05T16:39:11.356-05:00</published><updated>2012-03-05T16:39:11.356-05:00</updated><title type='text'>Thank you for the post. Could you give an advice. ...</title><content type='html'>Thank you for the post. Could you give an advice. If I have the same problem, but I have not 4 pairs as in the example, but 25 pairs to unpivot.&lt;br /&gt;Moreover, I have to do group by first of the  resulting column of the dynamic table and then order by sum(second resulting column)&lt;br /&gt;&lt;br /&gt; Also initial table contains more then 1 000 000 of rows. Is it good scenario for this task ? SQL has to manage group by and order by on the huge dynamic table without indexes.&lt;br /&gt;&lt;br /&gt;May be it is exist another approach to get same result ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/726715800938783865/comments/default/8568424538860276540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/726715800938783865/comments/default/8568424538860276540'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2009/02/unpivoting-multiple-columns.html?showComment=1330983551356#c8568424538860276540' title=''/><author><name>Alexander</name><uri>http://www.blogger.com/profile/03380748787140841600</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2009/02/unpivoting-multiple-columns.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-726715800938783865' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/726715800938783865' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1542566951'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='March 5, 2012 4:39 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-5363004443278456241</id><published>2012-02-23T16:22:56.787-05:00</published><updated>2012-02-23T16:22:56.787-05:00</updated><title type='text'>Very useful ! Thank you :)</title><content type='html'>Very useful ! Thank you :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/5363004443278456241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/5363004443278456241'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1330032176787#c5363004443278456241' title=''/><author><name>LadyZ</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-378759473'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='February 23, 2012 4:22 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-3182846175328632998</id><published>2012-02-17T00:48:31.424-05:00</published><updated>2012-02-17T00:48:31.424-05:00</updated><title type='text'>Hi Plamen,
I&amp;#39;d like to make a simple spatial b...</title><content type='html'>Hi Plamen,&lt;br /&gt;I&amp;#39;d like to make a simple spatial based application on a mobile frame platform. Right now the local database on the phone is MS SQL Server Compact Edition 3.5 and the external db is IBM DB2 9.7. I will have soon some table with polygons and offices with latitudes and longitudes. The goal is to find (and possibly to display) the routes between 2 points, that in addition should belong to one region of the state. I am beginner in this, my question is just where to start, what do I need, reference etc. &lt;br /&gt;Thanks, Georgi</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/6306725489813919978/comments/default/3182846175328632998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/6306725489813919978/comments/default/3182846175328632998'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/06/spatial-support-in-sql-server.html?showComment=1329457711424#c3182846175328632998' title=''/><author><name>goko</name><uri>http://www.blogger.com/profile/11930331720653756728</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/06/spatial-support-in-sql-server.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-6306725489813919978' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/6306725489813919978' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-897045399'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='February 17, 2012 12:48 AM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-6592045777445292242</id><published>2012-02-16T15:39:57.810-05:00</published><updated>2012-02-16T15:39:57.810-05:00</updated><title type='text'>Is it possible for this to work pulling from an ht...</title><content type='html'>Is it possible for this to work pulling from an http file? I need to automate this process and pull from an xml file on the web.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/6592045777445292242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/6592045777445292242'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1329424797810#c6592045777445292242' title=''/><author><name>Sam</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1045534634'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='February 16, 2012 3:39 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-5515703538051201916</id><published>2012-02-11T05:40:54.439-05:00</published><updated>2012-02-11T05:40:54.439-05:00</updated><title type='text'>Hi,
I am trying to load an XML File using XML Sour...</title><content type='html'>Hi,&lt;br /&gt;I am trying to load an XML File using XML Source task in SSIS.&lt;br /&gt;But its throwing the following error:&lt;br /&gt;[XML Source [1]] Error: The component &amp;quot;XML Source&amp;quot; (1) was unable to process the XML data. Derived types are not allowed to be declared in source Xml documents.  See element &amp;quot;Risk&amp;quot; with the attribute &amp;quot;xsi:type=House&amp;quot;.&lt;br /&gt;I don&amp;#39;t how to add this attribute to the XSD Schema. &lt;br /&gt;Can you please help me resolve it?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/5515703538051201916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/5515703538051201916'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1328956854439#c5515703538051201916' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-278204277'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='February 11, 2012 5:40 AM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-7436099789955696854</id><published>2012-02-08T14:58:19.341-05:00</published><updated>2012-02-08T14:58:19.341-05:00</updated><title type='text'>Good article -- thanks.  I work with EAV a lot in ...</title><content type='html'>Good article -- thanks.  I work with EAV a lot in healthcare, where it can be highly useful because of the &amp;quot;sparse matrix&amp;quot; nature of the data.  Question for you -- do you know of an algorithm or technique for transforming an EAV table to a flat table &amp;quot;on the fly&amp;quot; when the number of attributes that must become columns is potentially large and/or little is known about them a priori?  &lt;br /&gt;&lt;br /&gt;Your method involves knowing all of the attributes in advance, hard-coding the new table that will represent them as columns, and then constructing the query that transforms.  I would like to be able to write a query that takes any EAV table about which I have little prior knowledge and transforms and presents the data in a flattened format.  &lt;br /&gt;&lt;br /&gt;Thanks in advance for any advice!&lt;br /&gt;&lt;br /&gt;PS -- if this cannot be accomplished in SQL, I would also be interested in a programmatic algorithm using arrays.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/5028479143415872270/comments/default/7436099789955696854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/5028479143415872270/comments/default/7436099789955696854'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2010/07/refactoring-entity-attribute-value.html?showComment=1328731099341#c7436099789955696854' title=''/><author><name>Pete</name><uri>http://www.blogger.com/profile/15936768705521881054</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2010/07/refactoring-entity-attribute-value.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-5028479143415872270' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/5028479143415872270' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-388049356'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='February 8, 2012 2:58 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-3368105674997108883</id><published>2012-02-08T11:42:38.648-05:00</published><updated>2012-02-08T11:42:38.648-05:00</updated><title type='text'>I&amp;#39;m trying to get nested attributes to work - ...</title><content type='html'>I&amp;#39;m trying to get nested attributes to work - can anyone give me an idea?&lt;br /&gt;&lt;br /&gt;This is the XML:&lt;br /&gt;&amp;lt;*Document*&amp;gt;&lt;br /&gt;  &amp;lt;*Database name=&amp;quot;cpData&amp;quot;*&amp;gt;&lt;br /&gt;    &amp;lt;*PortID value=&amp;quot;4946&amp;quot;*&amp;gt;&lt;br /&gt;      &amp;lt;*ClientInformation*&amp;gt;&lt;br /&gt;        &amp;lt;*Resultset*&amp;gt;&lt;br /&gt;          &amp;lt;*Group name=&amp;quot;GroupDataResultRoot&amp;quot;*&amp;gt;&lt;br /&gt;            &amp;lt;*Group name=&amp;quot;GroupSameChildren&amp;quot;*&amp;gt;&lt;br /&gt;              &amp;lt;*Group name=&amp;quot;GroupPortfolioIDIndividualGroupOnly&amp;quot;*&amp;gt;&lt;br /&gt;                &amp;lt;*Field name=&amp;quot;Portfolio_PortfolioID&amp;quot;&amp;gt;4946&lt;br /&gt;                &amp;lt;*Field name=&amp;quot;Portfolio_PortType&amp;quot;&amp;gt;Group&lt;br /&gt;                &amp;lt;*Field name=&amp;quot;Portfolio_Objective&amp;quot;&amp;gt;P56BEANFR3&lt;br /&gt;&lt;br /&gt;This is my test query:&lt;br /&gt;Use Test_KTC&lt;br /&gt;Insert Into PCConfig (PortfolioID,PortType,Objective)&lt;br /&gt;Select X.pcconfig.query(&amp;#39;Portfolio_PortfolioID&amp;#39;).value(&amp;#39;.&amp;#39;, &amp;#39;int&amp;#39;),&lt;br /&gt;    X.pcconfig.query(&amp;#39;Portfolio_PortType&amp;#39;).value(&amp;#39;.&amp;#39;,&amp;#39;nchar(10)&amp;#39;),&lt;br /&gt;    X.pcconfig.query(&amp;#39;Portfolio_Objective&amp;#39;).value(&amp;#39;.&amp;#39;,&amp;#39;int&amp;#39;)&lt;br /&gt;&lt;br /&gt;From(&lt;br /&gt;Select Cast(x AS XML)&lt;br /&gt;From OPENROWSET(&lt;br /&gt; Bulk &amp;#39;F:\test.xml&amp;#39;,&lt;br /&gt; Single_Blob) AS T(x)&lt;br /&gt; ) as T(x)&lt;br /&gt; CROSS APPLY x.nodes(&amp;#39;Document/cpData/PortID/ClientInformation/Resultset/Group/Group/Group&amp;#39;) AS X(pcconfig);&lt;br /&gt; &lt;br /&gt; SELECT PortfolioID,PortType,Objective&lt;br /&gt; From PCCONFIG&lt;br /&gt;&lt;br /&gt;If I try to use the data(@name) as mentioned earlier (Select X.pcconfig.query(&amp;#39;Portfolio_PortfolioID(@name)&amp;#39;).value(&amp;#39;.&amp;#39;, &amp;#39;int&amp;#39;),), and it gives me this error: XQuery [T.x.query()]: There is no function &amp;#39;{http://www.w3.org/2004/07/xpath-functions}:Portfolio_PortfolioID()&amp;#39;&lt;br /&gt;&lt;br /&gt;The XML can&amp;#39;t be changed and clearly I&amp;#39;m missing something...&lt;br /&gt;&lt;br /&gt;Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/3368105674997108883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/3368105674997108883'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1328719358648#c3368105674997108883' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2047483481'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='February 8, 2012 11:42 AM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-1415524326310201645</id><published>2012-01-27T18:49:17.920-05:00</published><updated>2012-01-27T18:49:17.920-05:00</updated><title type='text'>I have a question about how to pull just a section...</title><content type='html'>I have a question about how to pull just a section of the file for instance  My files would be like this&lt;br /&gt;&amp;lt;&amp;quot;Catelog&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;List_Products_Types&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;Product_types&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;Product_type&amp;quot;&amp;gt;Dolls&amp;lt;&amp;quot;/Product_type&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;Products&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;Product&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;ProductID&amp;quot;&amp;gt;1&amp;lt;&amp;quot;/ProductID&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;ProductName&amp;quot;&amp;gt;barbie&amp;lt;&amp;quot;/ProductName&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;/Product&amp;quot;&amp;gt; &lt;br /&gt;&amp;lt;&amp;quot;Product&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;ProductID&amp;quot;&amp;gt;2&amp;lt;&amp;quot;/ProductID&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;ProductName&amp;quot;&amp;gt;ken&amp;lt;&amp;quot;/ProductName&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;/Product&amp;quot;&amp;gt; &lt;br /&gt;&amp;lt;&amp;quot;/Products&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;Product_type&amp;quot;&amp;gt;Toys&amp;lt;&amp;quot;/Product_type&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;Products&amp;quot;)&lt;br /&gt;&amp;lt;&amp;quot;Product&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;ProductID&amp;quot;&amp;gt;10&amp;lt;&amp;quot;/ProductID&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;ProductName&amp;quot;&amp;gt;wagon&amp;lt;&amp;quot;/ProductName&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;/Product&amp;quot;&amp;gt; &lt;br /&gt;&amp;lt;&amp;quot;Product&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;ProductID&amp;quot;&amp;gt;20&amp;lt;&amp;quot;/ProductID&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;ProductName&amp;quot;&amp;gt;bike&amp;lt;&amp;quot;/ProductName&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;/Product&amp;quot;&amp;gt; &lt;br /&gt;&amp;lt;&amp;quot;/Products&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;/List_Products_Types&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;&amp;quot;/Catelog&amp;quot;&amp;gt;&lt;br /&gt;  &lt;br /&gt;And I only what to pull a list of the dolls I have tried a where clause but I muse be missing somthing</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/1415524326310201645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/1415524326310201645'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1327708157920#c1415524326310201645' title=''/><author><name>Willy</name><uri>http://www.blogger.com/profile/17980702776420923940</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-96167560'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='January 27, 2012 6:49 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-6527437023937146642</id><published>2012-01-27T18:42:56.098-05:00</published><updated>2012-01-27T18:42:56.098-05:00</updated><title type='text'></title><content type='html'>This comment has been removed by the author.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/6527437023937146642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/6527437023937146642'/><author><name>Willy</name><uri>http://www.blogger.com/profile/17980702776420923940</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.contentRemoved' value='true'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-96167560'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='January 27, 2012 6:42 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-3311806687579550578</id><published>2012-01-27T18:36:13.262-05:00</published><updated>2012-01-27T18:36:13.262-05:00</updated><title type='text'></title><content type='html'>This comment has been removed by the author.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/3311806687579550578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/3311806687579550578'/><author><name>Willy</name><uri>http://www.blogger.com/profile/17980702776420923940</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.contentRemoved' value='true'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-96167560'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='January 27, 2012 6:36 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-560986191172649664</id><published>2012-01-18T03:35:09.870-05:00</published><updated>2012-01-18T03:35:09.870-05:00</updated><title type='text'>many thanks, this is exactly what I was looking fo...</title><content type='html'>many thanks, this is exactly what I was looking for</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/560986191172649664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/560986191172649664'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1326875709870#c560986191172649664' title=''/><author><name>Cy Downez</name><uri>http://www.blogger.com/profile/03290434773511988871</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_Hh2aTbZG21w/R1KeQniSxgI/AAAAAAAAABc/mYQZHhfcxDY/S220/Photo+99.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1298487927'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='January 18, 2012 3:35 AM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-4601131627548063754</id><published>2012-01-17T10:39:24.908-05:00</published><updated>2012-01-17T10:39:24.908-05:00</updated><title type='text'>Thank you Plamen for this post.  I have not used C...</title><content type='html'>Thank you Plamen for this post.  I have not used Cross Apply or FOR XML PATH before and your post was able to solve a business problem for me, thanks again&lt;br /&gt;&lt;br /&gt;Doug</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/5993850490624397229/comments/default/4601131627548063754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/5993850490624397229/comments/default/4601131627548063754'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/03/row-concatenation-with-for-xml-path.html?showComment=1326814764908#c4601131627548063754' title=''/><author><name>Doug Purnell</name><uri>http://www.blogger.com/profile/02921348759355811268</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/03/row-concatenation-with-for-xml-path.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-5993850490624397229' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/5993850490624397229' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1458055373'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='January 17, 2012 10:39 AM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-5486036178937407869</id><published>2012-01-11T04:48:54.621-05:00</published><updated>2012-01-11T04:48:54.621-05:00</updated><title type='text'>Cool - thanks - works a treat - once I had the adj...</title><content type='html'>Cool - thanks - works a treat - once I had the adjacency list I pulled that out as a digraph (DOT format) - easy to feed into a tool such as Graphviz and bingo - your nested set is drawn as a diagram - good to check visually that your structure is held properly.  Many thanks again!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/6489573313728656053/comments/default/5486036178937407869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/6489573313728656053/comments/default/5486036178937407869'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2007/02/convert-tree-structure-from-nested-set.html?showComment=1326275334621#c5486036178937407869' title=''/><author><name>Paul Russo</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2007/02/convert-tree-structure-from-nested-set.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-6489573313728656053' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/6489573313728656053' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-251552532'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='January 11, 2012 4:48 AM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-4943494622661073413</id><published>2012-01-10T14:58:56.999-05:00</published><updated>2012-01-10T14:58:56.999-05:00</updated><title type='text'>Nice. I&amp;#39;ve been looking for an example like th...</title><content type='html'>Nice. I&amp;#39;ve been looking for an example like this. Thanks :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/4943494622661073413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/7742569119268248354/comments/default/4943494622661073413'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html?showComment=1326225536999#c4943494622661073413' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-7742569119268248354' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/7742569119268248354' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-23584532'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='January 10, 2012 2:58 PM'/></entry><entry><id>tag:blogger.com,1999:blog-4282222233168200124.post-3046244447512528916</id><published>2012-01-05T14:36:16.520-05:00</published><updated>2012-01-05T14:36:16.520-05:00</updated><title type='text'>Thanks for the Post!!</title><content type='html'>Thanks for the Post!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/1397464317387335544/comments/default/3046244447512528916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4282222233168200124/1397464317387335544/comments/default/3046244447512528916'/><link rel='alternate' type='text/html' href='http://pratchev.blogspot.com/2007/10/importing-excel-data-into-sql-server.html?showComment=1325792176520#c3046244447512528916' title=''/><author><name>Lak</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://pratchev.blogspot.com/2007/10/importing-excel-data-into-sql-server.html' ref='tag:blogger.com,1999:blog-4282222233168200124.post-1397464317387335544' source='http://www.blogger.com/feeds/4282222233168200124/posts/default/1397464317387335544' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-81348983'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='January 5, 2012 2:36 PM'/></entry></feed>
