﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by diego.perdices  / XML Query / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 13:42:24 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>Oh :blush:!  I answered "which of the queries posted below [b];doesn't[/b]; return...";-).  I guess I'd forgotten what the question was by the time I worked out what each of the four queries would do.I hate xml, and FOR XML - all that fashionable junk - so it takes me a very very very long time (the first hour or two persuading myself that I really will look at something with XML in it:hehe:) to decipher a query with FOR XML in it.edit: change &amp;lt; and &amp;gt; to [ and ].  Whose idea was sqare brackets for presentation markup, anyway?</description><pubDate>Sat, 20 Mar 2010 11:29:31 GMT</pubDate><dc:creator>L' Eomot Inversé</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>Me too get same result for all 4 options</description><pubDate>Thu, 29 Oct 2009 01:34:48 GMT</pubDate><dc:creator>Muhammed Rafiq</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>Quiz doesn't work at all booooh!!</description><pubDate>Tue, 13 Oct 2009 01:54:52 GMT</pubDate><dc:creator>Stefano Bozzoni</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>The third query gives other result than first tree - look at the element names</description><pubDate>Fri, 09 Oct 2009 01:08:57 GMT</pubDate><dc:creator>Damian Widera-396333</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>When querying A (SQLServer2005, SQLServer2005_SSMSEE) displays:"&amp;lt;customers&amp;gt;&amp;lt;customers id="6"&amp;gt;&amp;lt;customers customer="Victoria"/&amp;gt;&amp;lt;/customers&amp;gt;&amp;lt;customers id="2"&amp;gt;&amp;lt;customers customer="Lyss"/&amp;gt;&amp;lt;/customers&amp;gt;&amp;lt;customers id="1"&amp;gt;&amp;lt;customers customer="John"/&amp;gt;&amp;lt;/customers&amp;gt;&amp;lt;customers id="3"&amp;gt;&amp;lt;customers customer="Jack"/&amp;gt;&amp;lt;/customers&amp;gt;&amp;lt;customer"This may be the result of installation of incomplete version(SQLServer2005, SQLServer2005_SSMSEE) What Kit you can recommend?</description><pubDate>Wed, 07 Oct 2009 12:31:31 GMT</pubDate><dc:creator>setiv</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>Setiv:  You can also set Tools -&amp;gt; Options... -&amp;gt; Query Results -&amp;gt; Results to File and save the file as a text document (change the file type to All Files).  However, I do recommend mtassin's suggestion over the Results to File option.  Still, it's good to know all of your options so as to make a better decision.--KevinC.</description><pubDate>Wed, 07 Oct 2009 11:25:29 GMT</pubDate><dc:creator>KevinC.</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>Setiv,also open Tools -&amp;gt; Options -&amp;gt; Results to text and set the maximum length to a value higher than 256.  I set mine to 4000 which works wonderfully :)</description><pubDate>Wed, 07 Oct 2009 10:52:21 GMT</pubDate><dc:creator>mtassin</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>This will not help. I need to buy a new computer.</description><pubDate>Wed, 07 Oct 2009 10:02:51 GMT</pubDate><dc:creator>setiv</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>Sanjay is right.... it got me because I wasn't reading clearly.[code]&amp;lt;customersa customers.id="6"&amp;gt;[/code]Is not the same as [code]&amp;lt;customers customers.id="6"&amp;gt;[/code] :)  Good question... shows me why I hate xml as much as I do :)</description><pubDate>Wed, 07 Oct 2009 09:48:17 GMT</pubDate><dc:creator>mtassin</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>[quote][b]lucky-80472 (10/7/2009)[/b][hr]I'm getting the same result for all the 4 queries posted.anybody else?[/quote]you see alias customersa and customersb in the resultset of C. where as in all other queries it's customers.</description><pubDate>Wed, 07 Oct 2009 08:50:36 GMT</pubDate><dc:creator>SanjayAttray</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>I am bad at XML, actually very bad.  Have to execute each code in SSMS and then see the difference.But still, what acually is different in C except that you see alias customersa and customersb, where as results are same and what is common between A, B and D queries ?May be a person with good XML knowledge can explain.</description><pubDate>Wed, 07 Oct 2009 08:49:23 GMT</pubDate><dc:creator>SanjayAttray</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>To setiv:If you want everything you need to set the "Results To Text" option. It's under Tools/Options/Query Results/SQL Server or better yet, if you have the right toolbar showing you can just click on the icon.</description><pubDate>Wed, 07 Oct 2009 07:50:41 GMT</pubDate><dc:creator>abinder-1080408</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>"None of them" was not a choice so I picked all of them since they all return the same result.</description><pubDate>Wed, 07 Oct 2009 07:44:46 GMT</pubDate><dc:creator>abinder-1080408</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>I'm getting the same result for all the 4 queries posted.anybody else?</description><pubDate>Wed, 07 Oct 2009 07:31:41 GMT</pubDate><dc:creator>lucky-80472</dc:creator></item><item><title>RE: XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>SELECT id as 'data()',customer as 'data()'FROM #customers AS customesraORDER BY customer DESCFOR XML PATH(''),ROOT('customers') I cannot view the full XML string.</description><pubDate>Wed, 07 Oct 2009 05:45:01 GMT</pubDate><dc:creator>setiv</dc:creator></item><item><title>XML Query</title><link>http://www.sqlservercentral.com/Forums/Topic798938-1667-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/questions/XML/67183/"&gt;XML Query&lt;/A&gt;[/B]</description><pubDate>Tue, 06 Oct 2009 23:51:53 GMT</pubDate><dc:creator>diego.perdices</dc:creator></item></channel></rss>