<?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; Simple Example of Reading XML File Using T-SQL</title>
	<atom:link href="http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Thu, 20 Jun 2013 06:45:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #016 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-422298</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #016 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 16 Feb 2013 01:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-422298</guid>
		<description><![CDATA[[...] Simple Example of Reading XML File Using T-SQL [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Simple Example of Reading XML File Using T-SQL [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bharatnet</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-380403</link>
		<dc:creator><![CDATA[bharatnet]]></dc:creator>
		<pubDate>Sun, 25 Nov 2012 03:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-380403</guid>
		<description><![CDATA[Hello sir,

how to read xml file from url in sql server 2008 and insert into table?

Thank You,
bharat]]></description>
		<content:encoded><![CDATA[<p>Hello sir,</p>
<p>how to read xml file from url in sql server 2008 and insert into table?</p>
<p>Thank You,<br />
bharat</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-336516</link>
		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Thu, 23 Aug 2012 21:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-336516</guid>
		<description><![CDATA[How can I do if the XML file has namespace?]]></description>
		<content:encoded><![CDATA[<p>How can I do if the XML file has namespace?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dhinakaran</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-303930</link>
		<dc:creator><![CDATA[Dhinakaran]]></dc:creator>
		<pubDate>Thu, 21 Jun 2012 12:17:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-303930</guid>
		<description><![CDATA[Hi pinal..
I have a serious issues.. we are getting data&#039;s daily in a XML format and we need to insert all these data&#039;s into SQL SERVER. The problem is, we have a column called &#039;Amount&#039; and same name we are maintaining in our SQL server.

Sometimes, we are receiving XML files, with &#039;Amount&#039; column name changed as &#039;Amt&#039; and without checking if we load it, we are inserted with Null values.

So I need to solution, that my table should accept AMOUNT as well as AMT as column name. 

Can you let me know the solution please.

Thanks and regards,
Dhinakaran]]></description>
		<content:encoded><![CDATA[<p>Hi pinal..<br />
I have a serious issues.. we are getting data&#8217;s daily in a XML format and we need to insert all these data&#8217;s into SQL SERVER. The problem is, we have a column called &#8216;Amount&#8217; and same name we are maintaining in our SQL server.</p>
<p>Sometimes, we are receiving XML files, with &#8216;Amount&#8217; column name changed as &#8216;Amt&#8217; and without checking if we load it, we are inserted with Null values.</p>
<p>So I need to solution, that my table should accept AMOUNT as well as AMT as column name. </p>
<p>Can you let me know the solution please.</p>
<p>Thanks and regards,<br />
Dhinakaran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sobhan</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-300497</link>
		<dc:creator><![CDATA[sobhan]]></dc:creator>
		<pubDate>Tue, 12 Jun 2012 16:40:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-300497</guid>
		<description><![CDATA[Hi, how to read the xml in sql server 2005. Below my code is placed,

declare @xml xml
 
set @xml=
&#039;
  
    
      01 first
    
  
  
    
      02 Second
    
  
&#039;

 
select a.b.value(&#039;.&#039;, &#039;nvarchar(50)&#039;) as a_value
from @xml.nodes(&#039;parent/child /subChild&#039;) a(b)]]></description>
		<content:encoded><![CDATA[<p>Hi, how to read the xml in sql server 2005. Below my code is placed,</p>
<p>declare @xml xml</p>
<p>set @xml=<br />
&#8216;</p>
<p>      01 first</p>
<p>      02 Second</p>
<p>&#8216;</p>
<p>select a.b.value(&#8216;.&#8217;, &#8216;nvarchar(50)&#8217;) as a_value<br />
from @xml.nodes(&#8216;parent/child /subChild&#8217;) a(b)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-299930</link>
		<dc:creator><![CDATA[Dave]]></dc:creator>
		<pubDate>Mon, 11 Jun 2012 17:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-299930</guid>
		<description><![CDATA[looks like the xml won&#039;t post.  trying again replacing  with LT &amp; GT:

LT?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; GT
LTappSettingsGT
LT!-- COPY THIS FILE TO C:\DLR  --GT
LT!-- Change the pieces to run to true --GT
LT!-- InputFeeds --GT
	LTadd key=&quot;LoadPLPD&quot; value = &quot;false&quot; /GT
  LT!-- LoadPLPDCancelDays is used to calculate the cancel date and should be a value greater than zero/GT
--&gt;
	LTadd key=&quot;LoadPLPDCancelDays&quot; value = &quot;22&quot; /GT]]></description>
		<content:encoded><![CDATA[<p>looks like the xml won&#8217;t post.  trying again replacing  with LT &amp; GT:</p>
<p>LT?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243; GT<br />
LTappSettingsGT<br />
LT!&#8211; COPY THIS FILE TO C:\DLR  &#8211;GT<br />
LT!&#8211; Change the pieces to run to true &#8211;GT<br />
LT!&#8211; InputFeeds &#8211;GT<br />
	LTadd key=&#8221;LoadPLPD&#8221; value = &#8220;false&#8221; /GT<br />
  LT!&#8211; LoadPLPDCancelDays is used to calculate the cancel date and should be a value greater than zero/GT<br />
&#8211;&gt;<br />
	LTadd key=&#8221;LoadPLPDCancelDays&#8221; value = &#8220;22&#8243; /GT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-299899</link>
		<dc:creator><![CDATA[Dave]]></dc:creator>
		<pubDate>Mon, 11 Jun 2012 16:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-299899</guid>
		<description><![CDATA[I&#039;m trying to pull a single int from an xml file stored on an app server into a stored proc, but I&#039;m not sure how that would work even after reading all of the examples above.  I&#039;d need to reference the file as \\[app server name]\c$\[path]\[filename].xml.  Also, the int in the xml file is not stored within a tag, but is instead a key.  Here is an excerpt of the xml file up to the point of the int that I need to pull in (I want 22 to be returned to the stored proc):


 
&lt;!-- COPY THIS FILE TO C:\DLR  --&gt;
&lt;!-- Change the pieces to run to true --&gt;
&lt;!-- InputFeeds --&gt;
	
  &lt;!-- LoadPLPDCancelDays is used to calculate the cancel date and should be a value greater than zero/&gt; --&gt;
	]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to pull a single int from an xml file stored on an app server into a stored proc, but I&#8217;m not sure how that would work even after reading all of the examples above.  I&#8217;d need to reference the file as \\[app server name]\c$\[path]\[filename].xml.  Also, the int in the xml file is not stored within a tag, but is instead a key.  Here is an excerpt of the xml file up to the point of the int that I need to pull in (I want 22 to be returned to the stored proc):</p>
<p><!-- COPY THIS FILE TO C:\DLR  --><br />
<!-- Change the pieces to run to true --><br />
<!-- InputFeeds --></p>
<p>  <!-- LoadPLPDCancelDays is used to calculate the cancel date and should be a value greater than zero/&gt; --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Azziet</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-281617</link>
		<dc:creator><![CDATA[Azziet]]></dc:creator>
		<pubDate>Thu, 03 May 2012 12:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-281617</guid>
		<description><![CDATA[Use This
SELECT xCol.value(&#039;(//author/last-name)[1]&#039;, &#039;nvarchar(50)&#039;) LastName
FROM   docs]]></description>
		<content:encoded><![CDATA[<p>Use This<br />
SELECT xCol.value(&#8216;(//author/last-name)[1]&#8216;, &#8216;nvarchar(50)&#8217;) LastName<br />
FROM   docs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramdas</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-275321</link>
		<dc:creator><![CDATA[ramdas]]></dc:creator>
		<pubDate>Thu, 12 Apr 2012 06:47:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-275321</guid>
		<description><![CDATA[&quot;XQuery [value()]: &#039;value()&#039; requires a singleton (or empty sequence), found operand of type &#039;xdt:untypedAtomic *&#039;&quot;
sir when i write the above command it shows me this error.]]></description>
		<content:encoded><![CDATA[<p>&#8220;XQuery [value()]: &#8216;value()&#8217; requires a singleton (or empty sequence), found operand of type &#8216;xdt:untypedAtomic *&#8217;&#8221;<br />
sir when i write the above command it shows me this error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: praveen kumar</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-253415</link>
		<dc:creator><![CDATA[praveen kumar]]></dc:creator>
		<pubDate>Fri, 17 Feb 2012 06:23:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-253415</guid>
		<description><![CDATA[Hi Dave,

I have a Stored procedure that reads XML file using the following query

INSERT INTO inv_tempfile(BulkColumn)                  
   select BulkColumn from Openrowset(                   
   Bulk &#039;&#039;&#039; + @FileName + &#039;&#039;&#039;, Single_Blob) as tt

This query reads the entire content of the file into inv_tempfile. The BulkColumn is a VARCHAR(MAX) type.

But the problem is, if the XML file contains &quot;?&quot; in any of its elements. Then this query is unable to read the whole file content.

below is the sample XML Element file.

#805 ? 2988 Alder Street, Vancouver tario  C0B1C0 

Can u please explain me why this is happening and if there is any workaround.]]></description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>I have a Stored procedure that reads XML file using the following query</p>
<p>INSERT INTO inv_tempfile(BulkColumn)<br />
   select BulkColumn from Openrowset(<br />
   Bulk &#8221;&#8217; + @FileName + &#8221;&#8217;, Single_Blob) as tt</p>
<p>This query reads the entire content of the file into inv_tempfile. The BulkColumn is a VARCHAR(MAX) type.</p>
<p>But the problem is, if the XML file contains &#8220;?&#8221; in any of its elements. Then this query is unable to read the whole file content.</p>
<p>below is the sample XML Element file.</p>
<p>#805 ? 2988 Alder Street, Vancouver tario  C0B1C0 </p>
<p>Can u please explain me why this is happening and if there is any workaround.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ram</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-250820</link>
		<dc:creator><![CDATA[ram]]></dc:creator>
		<pubDate>Fri, 10 Feb 2012 05:51:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-250820</guid>
		<description><![CDATA[Dear 

i have one employee table in xml 
how to display the all records from xml
like(select *from emp)]]></description>
		<content:encoded><![CDATA[<p>Dear </p>
<p>i have one employee table in xml<br />
how to display the all records from xml<br />
like(select *from emp)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Methods for Accessing SQL Server XML Datatype &#8211; Quiz &#8211; Puzzle &#8211; 20 of 31 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-241554</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Methods for Accessing SQL Server XML Datatype &#8211; Quiz &#8211; Puzzle &#8211; 20 of 31 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 21 Jan 2012 01:31:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-241554</guid>
		<description><![CDATA[[...] SELECT * FROM XML Shredding XML Validate an XML document in TSQL using XSD Simple Example of Reading XML File Using T-SQL Simple Example of Creating XML File Using [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SELECT * FROM XML Shredding XML Validate an XML document in TSQL using XSD Simple Example of Reading XML File Using T-SQL Simple Example of Creating XML File Using [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vasu</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-241393</link>
		<dc:creator><![CDATA[vasu]]></dc:creator>
		<pubDate>Fri, 20 Jan 2012 17:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-241393</guid>
		<description><![CDATA[
          
                
                
                
                
                
           
        
Sir

Help me in getting the text of a particular value attribute]]></description>
		<content:encoded><![CDATA[<p>Sir</p>
<p>Help me in getting the text of a particular value attribute</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akhil</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-211785</link>
		<dc:creator><![CDATA[Akhil]]></dc:creator>
		<pubDate>Tue, 06 Dec 2011 03:33:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-211785</guid>
		<description><![CDATA[DECLARE @productIds xml
SET @productIds =&#039;3615&#039; 

SELECT
ParamValues.ID.value(&#039;.&#039;,&#039;VARCHAR(20)&#039;)
FROM @productIds.nodes(&#039;/Products/id&#039;) as ParamValues(ID)]]></description>
		<content:encoded><![CDATA[<p>DECLARE @productIds xml<br />
SET @productIds =&#8217;3615&#8242; </p>
<p>SELECT<br />
ParamValues.ID.value(&#8216;.&#8217;,'VARCHAR(20)&#8217;)<br />
FROM @productIds.nodes(&#8216;/Products/id&#8217;) as ParamValues(ID)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: penolepe</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-202252</link>
		<dc:creator><![CDATA[penolepe]]></dc:creator>
		<pubDate>Tue, 22 Nov 2011 15:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-202252</guid>
		<description><![CDATA[you are perfect. very thanks.]]></description>
		<content:encoded><![CDATA[<p>you are perfect. very thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: S.L.</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-177203</link>
		<dc:creator><![CDATA[S.L.]]></dc:creator>
		<pubDate>Mon, 10 Oct 2011 15:52:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-177203</guid>
		<description><![CDATA[So, where is the code to actually read XML from a *FILE* -- The title says &quot;example of reading xml file&quot; but I see nothing about how to open and read data from an XML file on disk??]]></description>
		<content:encoded><![CDATA[<p>So, where is the code to actually read XML from a *FILE* &#8212; The title says &#8220;example of reading xml file&#8221; but I see nothing about how to open and read data from an XML file on disk??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Effle</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-175721</link>
		<dc:creator><![CDATA[John Effle]]></dc:creator>
		<pubDate>Thu, 06 Oct 2011 13:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-175721</guid>
		<description><![CDATA[Thank you Mr. Pinal]]></description>
		<content:encoded><![CDATA[<p>Thank you Mr. Pinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dann</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-166879</link>
		<dc:creator><![CDATA[dann]]></dc:creator>
		<pubDate>Fri, 09 Sep 2011 18:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-166879</guid>
		<description><![CDATA[hi, pueden ayudarme se los voy a agradecer mucho.

how create schema for this xml?



   
      
         
            2345345
            345
            04/25/2011
            09:12 am
         
      
   
]]></description>
		<content:encoded><![CDATA[<p>hi, pueden ayudarme se los voy a agradecer mucho.</p>
<p>how create schema for this xml?</p>
<p>            2345345<br />
            345<br />
            04/25/2011<br />
            09:12 am</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dinesh singu</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-163898</link>
		<dc:creator><![CDATA[dinesh singu]]></dc:creator>
		<pubDate>Wed, 31 Aug 2011 08:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-163898</guid>
		<description><![CDATA[sir I need help for inserting muliple rows in table
for 100 colours then I have to folowing
a.b.value(‘Colors[1]/Color1[1]‘,‘varchar(10)’) AS Color1,
a.b.value(‘Colors[1]/Color2[1]‘,‘varchar(10)’) AS Color2,
                             ........
                                 ......
                                    .......
a.b.value(‘Colors[1]/Color1[100]‘,‘varchar(10)’) AS Color1,
this much code we have.we have any option to write in 2 or 3 lines 
pls help me .mail me on [email removed]]]></description>
		<content:encoded><![CDATA[<p>sir I need help for inserting muliple rows in table<br />
for 100 colours then I have to folowing<br />
a.b.value(‘Colors[1]/Color1[1]‘,‘varchar(10)’) AS Color1,<br />
a.b.value(‘Colors[1]/Color2[1]‘,‘varchar(10)’) AS Color2,<br />
                             &#8230;&#8230;..<br />
                                 &#8230;&#8230;<br />
                                    &#8230;&#8230;.<br />
a.b.value(‘Colors[1]/Color1[100]‘,‘varchar(10)’) AS Color1,<br />
this much code we have.we have any option to write in 2 or 3 lines<br />
pls help me .mail me on [email removed]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dinesh singu</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-163896</link>
		<dc:creator><![CDATA[dinesh singu]]></dc:creator>
		<pubDate>Wed, 31 Aug 2011 08:42:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-163896</guid>
		<description><![CDATA[hello give proper single quotes]]></description>
		<content:encoded><![CDATA[<p>hello give proper single quotes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sharon</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-155715</link>
		<dc:creator><![CDATA[sharon]]></dc:creator>
		<pubDate>Wed, 10 Aug 2011 08:27:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-155715</guid>
		<description><![CDATA[Hi Mr. Pinal,
How can i show the following xml in select view
thanks 
sharon

declare @xml xml
set @xml = 
User ID=25
   SecurityLevelID  222  SecurityLevelID
    SecurityLevelID 223  SecurityLevelID
    SecurityLevelID 224  SecurityLevelID
UserID

result :
SecurityLevelID   ID 
222                       25
223                       25
224                       25]]></description>
		<content:encoded><![CDATA[<p>Hi Mr. Pinal,<br />
How can i show the following xml in select view<br />
thanks<br />
sharon</p>
<p>declare @xml xml<br />
set @xml =<br />
User ID=25<br />
   SecurityLevelID  222  SecurityLevelID<br />
    SecurityLevelID 223  SecurityLevelID<br />
    SecurityLevelID 224  SecurityLevelID<br />
UserID</p>
<p>result :<br />
SecurityLevelID   ID<br />
222                       25<br />
223                       25<br />
224                       25</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sharon</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-155713</link>
		<dc:creator><![CDATA[sharon]]></dc:creator>
		<pubDate>Wed, 10 Aug 2011 08:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-155713</guid>
		<description><![CDATA[Hi Mr. Pinal,
How can i show the following xml in select view
thanks 
sharon

declare @xml xml
set @xml = 
&#039;
    222
    223
    224
&#039;

result :
SecurityLevelID   ID 
222                       25
223                       25
224                       25]]></description>
		<content:encoded><![CDATA[<p>Hi Mr. Pinal,<br />
How can i show the following xml in select view<br />
thanks<br />
sharon</p>
<p>declare @xml xml<br />
set @xml =<br />
&#8216;<br />
    222<br />
    223<br />
    224<br />
&#8216;</p>
<p>result :<br />
SecurityLevelID   ID<br />
222                       25<br />
223                       25<br />
224                       25</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sabeer</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-151595</link>
		<dc:creator><![CDATA[Sabeer]]></dc:creator>
		<pubDate>Fri, 29 Jul 2011 15:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-151595</guid>
		<description><![CDATA[Hi Sir,

I have XML that is in the Format   

    
      
        contractTypeId
        15
      
      
        endDate
        J
      
      
        startDate
        03/01/2004
      
      
        restrictedService
        False
      
      
        requestType
        R
      
      
        requestTypeId
        4
      
      
        contractAmount
        $10.00
      
      
        versionNo
        1
      
      
        listId
        249
      
      
        changeOrderId
        -1
      
      
        supplementNo
        0
      
      
        templateId
        19
      
      
        requestDocId
        224
      
      
        requestId
        234
      
      
        orgUnitTemplateId
        19
      
      
        contractTypeRequired
        False
      
      
        EndDate
        31/03/2011
      
    
  

it&#039;s required for me to update the Only startdate  and EndDate  values with new dates. Please help me on this ?]]></description>
		<content:encoded><![CDATA[<p>Hi Sir,</p>
<p>I have XML that is in the Format   </p>
<p>        contractTypeId<br />
        15</p>
<p>        endDate<br />
        J</p>
<p>        startDate<br />
        03/01/2004</p>
<p>        restrictedService<br />
        False</p>
<p>        requestType<br />
        R</p>
<p>        requestTypeId<br />
        4</p>
<p>        contractAmount<br />
        $10.00</p>
<p>        versionNo<br />
        1</p>
<p>        listId<br />
        249</p>
<p>        changeOrderId<br />
        -1</p>
<p>        supplementNo<br />
        0</p>
<p>        templateId<br />
        19</p>
<p>        requestDocId<br />
        224</p>
<p>        requestId<br />
        234</p>
<p>        orgUnitTemplateId<br />
        19</p>
<p>        contractTypeRequired<br />
        False</p>
<p>        EndDate<br />
        31/03/2011</p>
<p>it&#8217;s required for me to update the Only startdate  and EndDate  values with new dates. Please help me on this ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Jacobson</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-149418</link>
		<dc:creator><![CDATA[John Jacobson]]></dc:creator>
		<pubDate>Tue, 19 Jul 2011 22:07:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-149418</guid>
		<description><![CDATA[Thanks so much for your clear concise examples!!  You are a life saver.]]></description>
		<content:encoded><![CDATA[<p>Thanks so much for your clear concise examples!!  You are a life saver.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinod</title>
		<link>http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/#comment-144252</link>
		<dc:creator><![CDATA[Vinod]]></dc:creator>
		<pubDate>Mon, 27 Jun 2011 20:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2468#comment-144252</guid>
		<description><![CDATA[Sample file once again the sample file.



27/06/2011
123456789
1234
CCODE001
CUSTOMER NAME
N

REC ADDR 1
REC ADDR 2



WORLD

SENDER NAME

SEND ADDR 1
SEND ADDR 2
SEND ADDR 3
STATE
POSTCODE


S
CARRIER NAME
999123
BY ROAD
N





6
18
0
0
0

N



10.00
11.00
0
11.00
11.00
0
11.00
11.00
1

N

N






ABCDEFGHIJ000000990001
ABCDEFGHIJ000000990002
0

T000123
CUSTOMER
6
6


]]></description>
		<content:encoded><![CDATA[<p>Sample file once again the sample file.</p>
<p>27/06/2011<br />
123456789<br />
1234<br />
CCODE001<br />
CUSTOMER NAME<br />
N</p>
<p>REC ADDR 1<br />
REC ADDR 2</p>
<p>WORLD</p>
<p>SENDER NAME</p>
<p>SEND ADDR 1<br />
SEND ADDR 2<br />
SEND ADDR 3<br />
STATE<br />
POSTCODE</p>
<p>S<br />
CARRIER NAME<br />
999123<br />
BY ROAD<br />
N</p>
<p>6<br />
18<br />
0<br />
0<br />
0</p>
<p>N</p>
<p>10.00<br />
11.00<br />
0<br />
11.00<br />
11.00<br />
0<br />
11.00<br />
11.00<br />
1</p>
<p>N</p>
<p>N</p>
<p>ABCDEFGHIJ000000990001<br />
ABCDEFGHIJ000000990002<br />
0</p>
<p>T000123<br />
CUSTOMER<br />
6<br />
6</p>
]]></content:encoded>
	</item>
</channel>
</rss>
