<?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 Creating XML File Using T-SQL</title>
	<atom:link href="http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sun, 12 Feb 2012 09:22:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<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/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-241555</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:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-241555</guid>
		<description><![CDATA[[...] SQL Server Interview Questions and Answers ISBN: 1466405643 Page#137-139 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 T-SQL [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL Server Interview Questions and Answers ISBN: 1466405643 Page#137-139 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 T-SQL [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: henrry</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-204371</link>
		<dc:creator><![CDATA[henrry]]></dc:creator>
		<pubDate>Fri, 25 Nov 2011 14:34:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-204371</guid>
		<description><![CDATA[Hi

    how i can  insert in the  xml result on the top from a sql server 2008 query this ?

thanks]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>    how i can  insert in the  xml result on the top from a sql server 2008 query this ?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sat</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-183636</link>
		<dc:creator><![CDATA[Sat]]></dc:creator>
		<pubDate>Wed, 26 Oct 2011 08:25:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-183636</guid>
		<description><![CDATA[Pinal Bhai You are the Best.

Sat]]></description>
		<content:encoded><![CDATA[<p>Pinal Bhai You are the Best.</p>
<p>Sat</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mariselvam</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-175090</link>
		<dc:creator><![CDATA[Mariselvam]]></dc:creator>
		<pubDate>Tue, 04 Oct 2011 16:22:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-175090</guid>
		<description><![CDATA[HI Pinal,

I want to create a XML of this type.




   
   




Tags Email1,Email2 are dynamic. Also, NumberOfLeads will change for each listing.

Can you help with this one?

Thanks!
Mari]]></description>
		<content:encoded><![CDATA[<p>HI Pinal,</p>
<p>I want to create a XML of this type.</p>
<p>Tags Email1,Email2 are dynamic. Also, NumberOfLeads will change for each listing.</p>
<p>Can you help with this one?</p>
<p>Thanks!<br />
Mari</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sridhar</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-171571</link>
		<dc:creator><![CDATA[Sridhar]]></dc:creator>
		<pubDate>Sun, 25 Sep 2011 08:23:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-171571</guid>
		<description><![CDATA[Hi All,

I want to write the below code without using the Xml path, type or root. i.e. want to rewrite code using pure sql statements using xml functionalities. Will inserting just UNION ALL and removing XML path, type and root work for me. 
Thanks in advance

SELECT ( SELECT &#039;White&#039; AS Color1,
&#039;Blue&#039; AS Color2,
&#039;Black&#039; AS Color3,
&#039;Light&#039; AS &#039;Color4/@Special&#039;,
&#039;Green&#039; AS Color4,
&#039;Red&#039; AS Color5
FOR
XML PATH(&#039;Colors&#039;),
TYPE
),
( SELECT &#039;Apple&#039; AS Fruits1,
&#039;Pineapple&#039; AS Fruits2,
&#039;Grapes&#039; AS Fruits3,
&#039;Melon&#039; AS Fruits4
FOR
XML PATH(&#039;Fruits&#039;),
TYPE
)
FOR XML PATH(&#039;&#039;),
ROOT(&#039;SampleXML&#039;)
GO]]></description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I want to write the below code without using the Xml path, type or root. i.e. want to rewrite code using pure sql statements using xml functionalities. Will inserting just UNION ALL and removing XML path, type and root work for me.<br />
Thanks in advance</p>
<p>SELECT ( SELECT &#8216;White&#8217; AS Color1,<br />
&#8216;Blue&#8217; AS Color2,<br />
&#8216;Black&#8217; AS Color3,<br />
&#8216;Light&#8217; AS &#8216;Color4/@Special&#8217;,<br />
&#8216;Green&#8217; AS Color4,<br />
&#8216;Red&#8217; AS Color5<br />
FOR<br />
XML PATH(&#8216;Colors&#8217;),<br />
TYPE<br />
),<br />
( SELECT &#8216;Apple&#8217; AS Fruits1,<br />
&#8216;Pineapple&#8217; AS Fruits2,<br />
&#8216;Grapes&#8217; AS Fruits3,<br />
&#8216;Melon&#8217; AS Fruits4<br />
FOR<br />
XML PATH(&#8216;Fruits&#8217;),<br />
TYPE<br />
)<br />
FOR XML PATH(&#8221;),<br />
ROOT(&#8216;SampleXML&#8217;)<br />
GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter H</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-164918</link>
		<dc:creator><![CDATA[Peter H]]></dc:creator>
		<pubDate>Fri, 02 Sep 2011 23:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-164918</guid>
		<description><![CDATA[Always good articals Pinal. Thanks.]]></description>
		<content:encoded><![CDATA[<p>Always good articals Pinal. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-159595</link>
		<dc:creator><![CDATA[Doc]]></dc:creator>
		<pubDate>Fri, 19 Aug 2011 19:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-159595</guid>
		<description><![CDATA[FYI, the word &quot;fruit&quot; is already plural.  There is no such thing as &quot;fruits.&quot;]]></description>
		<content:encoded><![CDATA[<p>FYI, the word &#8220;fruit&#8221; is already plural.  There is no such thing as &#8220;fruits.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tgu</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-153029</link>
		<dc:creator><![CDATA[tgu]]></dc:creator>
		<pubDate>Wed, 03 Aug 2011 06:44:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-153029</guid>
		<description><![CDATA[
    document.getElementById(&#039;footer&#039;).style.display = &#039;none&#039;;
]]></description>
		<content:encoded><![CDATA[<p>document.getElementById(&#8216;footer&#8217;).style.display = &#8216;none&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jagdish</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-150570</link>
		<dc:creator><![CDATA[Jagdish]]></dc:creator>
		<pubDate>Mon, 25 Jul 2011 13:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-150570</guid>
		<description><![CDATA[Hi Pinal,

Your articles are always simple and to the point to understand. Thanks.

I have a question. In the following code, I get xml fragment with value that include insignificant zeros at the end. How can I get the value without these zeroes? Thanks for your help.

declare @v float = &#039;4.03&#039;
select @v as Value from M_MaintenanceConfig for xml auto



I want to get:

]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Your articles are always simple and to the point to understand. Thanks.</p>
<p>I have a question. In the following code, I get xml fragment with value that include insignificant zeros at the end. How can I get the value without these zeroes? Thanks for your help.</p>
<p>declare @v float = &#8217;4.03&#8242;<br />
select @v as Value from M_MaintenanceConfig for xml auto</p>
<p>I want to get:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sakapo</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-150295</link>
		<dc:creator><![CDATA[Sakapo]]></dc:creator>
		<pubDate>Sun, 24 Jul 2011 03:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-150295</guid>
		<description><![CDATA[Hi,

I am facing issue in generating xml where I need to get value of the field of a table in a nodes. 
Example please, I have a table name customer having field called owner_name. Field Name &#039;owner_name&#039; in table customer has got 5 records. I need to display the xml in the following format

@owner_name1
@owner_name2
@owner_name3
@owner_name4
@owner_name5


Please let me know,how can I generate the xml like this.

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am facing issue in generating xml where I need to get value of the field of a table in a nodes.<br />
Example please, I have a table name customer having field called owner_name. Field Name &#8216;owner_name&#8217; in table customer has got 5 records. I need to display the xml in the following format</p>
<p>@owner_name1<br />
@owner_name2<br />
@owner_name3<br />
@owner_name4<br />
@owner_name5</p>
<p>Please let me know,how can I generate the xml like this.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kathy</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-149887</link>
		<dc:creator><![CDATA[Kathy]]></dc:creator>
		<pubDate>Thu, 21 Jul 2011 22:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-149887</guid>
		<description><![CDATA[This XML creation code is exactly what I needed!  Thanks so much.  I have found many good solutions on this website.]]></description>
		<content:encoded><![CDATA[<p>This XML creation code is exactly what I needed!  Thanks so much.  I have found many good solutions on this website.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-146594</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 07 Jul 2011 08:26:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-146594</guid>
		<description><![CDATA[Refer this post
http://beyondrelational.com/blogs/madhivanan/archive/2008/09/11/splitting-delimited-data-to-columns-set-based-approach.aspx]]></description>
		<content:encoded><![CDATA[<p>Refer this post<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2008/09/11/splitting-delimited-data-to-columns-set-based-approach.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2008/09/11/splitting-delimited-data-to-columns-set-based-approach.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prem Shah</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-146569</link>
		<dc:creator><![CDATA[Prem Shah]]></dc:creator>
		<pubDate>Thu, 07 Jul 2011 05:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-146569</guid>
		<description><![CDATA[hi,

    i have one table which contain id int,name varchar(256), and address xml.

suppose there  is one record as following. 

   id = 1

   name = Prem

  address=  jadibuti teku kalimati



i want to retrieve data in tabular format like

id 	name	homeaddress 		officeaddress	assistant address
1	prem		jadibuti			teku			kalimati

how could this possible.

please help me.]]></description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>    i have one table which contain id int,name varchar(256), and address xml.</p>
<p>suppose there  is one record as following. </p>
<p>   id = 1</p>
<p>   name = Prem</p>
<p>  address=  jadibuti teku kalimati</p>
<p>i want to retrieve data in tabular format like</p>
<p>id 	name	homeaddress 		officeaddress	assistant address<br />
1	prem		jadibuti			teku			kalimati</p>
<p>how could this possible.</p>
<p>please help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Britman branco</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-145029</link>
		<dc:creator><![CDATA[Britman branco]]></dc:creator>
		<pubDate>Fri, 01 Jul 2011 05:30:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-145029</guid>
		<description><![CDATA[
  
    White
    Blue
    Black
    Green
    Red
  
  
    Apple
    Pineapple
    Grapes
    Melon
  
]]></description>
		<content:encoded><![CDATA[<p>White<br />
    Blue<br />
    Black<br />
    Green<br />
    Red</p>
<p>    Apple<br />
    Pineapple<br />
    Grapes<br />
    Melon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Britman branco</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-145028</link>
		<dc:creator><![CDATA[Britman branco]]></dc:creator>
		<pubDate>Fri, 01 Jul 2011 05:29:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-145028</guid>
		<description><![CDATA[I want to Add the attribute inside the main nodes
my xml will be like 

  
    White
    Blue
    Black
    Green
    Red
  
  
    Apple
    Pineapple
    Grapes
    Melon
  


Please advice me ...thanks in advance...]]></description>
		<content:encoded><![CDATA[<p>I want to Add the attribute inside the main nodes<br />
my xml will be like </p>
<p>    White<br />
    Blue<br />
    Black<br />
    Green<br />
    Red</p>
<p>    Apple<br />
    Pineapple<br />
    Grapes<br />
    Melon</p>
<p>Please advice me &#8230;thanks in advance&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-141102</link>
		<dc:creator><![CDATA[Jared]]></dc:creator>
		<pubDate>Wed, 15 Jun 2011 16:34:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-141102</guid>
		<description><![CDATA[or rather...

Client
      Name
             First John /First
             Last Doe/Last
      /Name
      Name
             First Jane/First
             Last Doe/Last
      /Name
/Client

Forgot about the lt/gt tags :)]]></description>
		<content:encoded><![CDATA[<p>or rather&#8230;</p>
<p>Client<br />
      Name<br />
             First John /First<br />
             Last Doe/Last<br />
      /Name<br />
      Name<br />
             First Jane/First<br />
             Last Doe/Last<br />
      /Name<br />
/Client</p>
<p>Forgot about the lt/gt tags :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-141100</link>
		<dc:creator><![CDATA[Jared]]></dc:creator>
		<pubDate>Wed, 15 Jun 2011 16:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-141100</guid>
		<description><![CDATA[I was having problems extracting data from an SQL Database and writing into a formatted XML document, even after reading this.  For anyone else with a similar question here was my query.

Select FirstName AS [First], LastName AS [Last]
From ResearchLibrary.dbo.Client
For XML PATH(&#039;Name&#039;),
ROOT (&#039;Client&#039;)

will produce this.

     
          John
          Doe
     
     
          Jane
          Doe
     
]]></description>
		<content:encoded><![CDATA[<p>I was having problems extracting data from an SQL Database and writing into a formatted XML document, even after reading this.  For anyone else with a similar question here was my query.</p>
<p>Select FirstName AS [First], LastName AS [Last]<br />
From ResearchLibrary.dbo.Client<br />
For XML PATH(&#8216;Name&#8217;),<br />
ROOT (&#8216;Client&#8217;)</p>
<p>will produce this.</p>
<p>          John<br />
          Doe</p>
<p>          Jane<br />
          Doe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mustafa</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-136807</link>
		<dc:creator><![CDATA[Mustafa]]></dc:creator>
		<pubDate>Thu, 26 May 2011 12:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-136807</guid>
		<description><![CDATA[Excelent, thank you.]]></description>
		<content:encoded><![CDATA[<p>Excelent, thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Semi Geek</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-132225</link>
		<dc:creator><![CDATA[Semi Geek]]></dc:creator>
		<pubDate>Sun, 01 May 2011 07:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-132225</guid>
		<description><![CDATA[@&quot;
  
    White
    Blue
    Black
    Green
    Red
  
  
    Apple
    Pineapple
    Grapes
    Melon
  
&quot;]]></description>
		<content:encoded><![CDATA[<p>@&#8221;</p>
<p>    White<br />
    Blue<br />
    Black<br />
    Green<br />
    Red</p>
<p>    Apple<br />
    Pineapple<br />
    Grapes<br />
    Melon</p>
<p>&#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Semi Geek</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-132224</link>
		<dc:creator><![CDATA[Semi Geek]]></dc:creator>
		<pubDate>Sun, 01 May 2011 07:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-132224</guid>
		<description><![CDATA[How to produce the following XML?


  
    White
    Blue
    Black
    Green
    Red
  
  
    Apple
    Pineapple
    Grapes
    Melon
  
]]></description>
		<content:encoded><![CDATA[<p>How to produce the following XML?</p>
<p>    White<br />
    Blue<br />
    Black<br />
    Green<br />
    Red</p>
<p>    Apple<br />
    Pineapple<br />
    Grapes<br />
    Melon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mani</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-130874</link>
		<dc:creator><![CDATA[Mani]]></dc:creator>
		<pubDate>Sun, 24 Apr 2011 14:54:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-130874</guid>
		<description><![CDATA[Hi Pinal,

  I need to read the colors data from below xml using sql query.

Note : colors having xmlns namespace .

DECLARE @MyXML XML
SET @MyXML = &#039;

White 
Blue
Black
Green
Red

&#039;



SELECT
a.b.value(&#039;Colors[1]/Color1[1]&#039;,&#039;varchar(10)&#039;) AS Color1

FROM @MyXML.nodes(&#039;SampleXML&#039;) a(b) 


Pls Help
 

Mani]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>  I need to read the colors data from below xml using sql query.</p>
<p>Note : colors having xmlns namespace .</p>
<p>DECLARE @MyXML XML<br />
SET @MyXML = &#8216;</p>
<p>White<br />
Blue<br />
Black<br />
Green<br />
Red</p>
<p>&#8216;</p>
<p>SELECT<br />
a.b.value(&#8216;Colors[1]/Color1[1]&#8216;,&#8217;varchar(10)&#8217;) AS Color1</p>
<p>FROM @MyXML.nodes(&#8216;SampleXML&#8217;) a(b) </p>
<p>Pls Help</p>
<p>Mani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mani</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-130870</link>
		<dc:creator><![CDATA[Mani]]></dc:creator>
		<pubDate>Sun, 24 Apr 2011 14:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-130870</guid>
		<description><![CDATA[Hi Pinal,

 Can you help me, below xml string i need to read using sql query.

-- SQL Server 2008 execution - xquery
DECLARE @xml xml = &#039; 
Host=ms0001xp/Pid=1400
mani
Thanigaimani 
&#039;
SELECT V.col.query(&#039;UserId&#039;).value(&#039;.&#039;, &#039;VARCHAR(32)&#039;) AS UserID,
       V.col.query(&#039;UserName&#039;).value(&#039;.&#039;, &#039;VARCHAR(32)&#039;) AS UserName
FROM @XML.nodes(&#039;StudyDeleteExtendedInfo&#039;) AS V(col);


Note : Userid tag having xmlns namespace.

I have to read userid data from above query.


Regards
Mani]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p> Can you help me, below xml string i need to read using sql query.</p>
<p>&#8211; SQL Server 2008 execution &#8211; xquery<br />
DECLARE @xml xml = &#8216;<br />
Host=ms0001xp/Pid=1400<br />
mani<br />
Thanigaimani<br />
&#8216;<br />
SELECT V.col.query(&#8216;UserId&#8217;).value(&#8216;.&#8217;, &#8216;VARCHAR(32)&#8217;) AS UserID,<br />
       V.col.query(&#8216;UserName&#8217;).value(&#8216;.&#8217;, &#8216;VARCHAR(32)&#8217;) AS UserName<br />
FROM @XML.nodes(&#8216;StudyDeleteExtendedInfo&#8217;) AS V(col);</p>
<p>Note : Userid tag having xmlns namespace.</p>
<p>I have to read userid data from above query.</p>
<p>Regards<br />
Mani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yusuf</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-128628</link>
		<dc:creator><![CDATA[Yusuf]]></dc:creator>
		<pubDate>Wed, 13 Apr 2011 07:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-128628</guid>
		<description><![CDATA[And i want to retrive data in xml format


  
]]></description>
		<content:encoded><![CDATA[<p>And i want to retrive data in xml format</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yusuf</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-128627</link>
		<dc:creator><![CDATA[Yusuf]]></dc:creator>
		<pubDate>Wed, 13 Apr 2011 07:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-128627</guid>
		<description><![CDATA[i want to retrive  data from sql 2005 into xml file without inserting in xml formate

create table xml
(
	id int  identity(1,1) constraint pkid primary key,
	name nvarchar(50),
	img nvarchar(50),
	content nvarchar(max),
	won nvarchar(10)
)


  
 

how can we do that...?
pls help
thankx]]></description>
		<content:encoded><![CDATA[<p>i want to retrive  data from sql 2005 into xml file without inserting in xml formate</p>
<p>create table xml<br />
(<br />
	id int  identity(1,1) constraint pkid primary key,<br />
	name nvarchar(50),<br />
	img nvarchar(50),<br />
	content nvarchar(max),<br />
	won nvarchar(10)<br />
)</p>
<p>how can we do that&#8230;?<br />
pls help<br />
thankx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sindhu</title>
		<link>http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/#comment-121680</link>
		<dc:creator><![CDATA[Sindhu]]></dc:creator>
		<pubDate>Thu, 03 Mar 2011 10:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2464#comment-121680</guid>
		<description><![CDATA[Is there any way to convert sql server database to XML in Query?]]></description>
		<content:encoded><![CDATA[<p>Is there any way to convert sql server database to XML in Query?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

