|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Thursday, May 09, 2013 2:47 AM
Points: 705,
Visits: 239
|
|
| Comments posted to this topic are about the item XML Query
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Tuesday, July 24, 2012 11:01 AM
Points: 50,
Visits: 246
|
|
SELECT id as 'data()', customer as 'data()' FROM #customers AS customesra ORDER BY customer DESC FOR XML PATH(''),ROOT('customers')
I cannot view the full XML string.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 8:51 AM
Points: 1,295,
Visits: 733
|
|
I'm getting the same result for all the 4 queries posted.
anybody else?
Lucky
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, November 02, 2009 7:39 AM
Points: 25,
Visits: 23
|
|
| "None of them" was not a choice so I picked all of them since they all return the same result.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, November 02, 2009 7:39 AM
Points: 25,
Visits: 23
|
|
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.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Friday, March 15, 2013 2:43 PM
Points: 3,924,
Visits: 1,554
|
|
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.
SQL DBA.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Friday, March 15, 2013 2:43 PM
Points: 3,924,
Visits: 1,554
|
|
lucky-80472 (10/7/2009) I'm getting the same result for all the 4 queries posted.
anybody else?
you see alias customersa and customersb in the resultset of C. where as in all other queries it's customers.
SQL DBA.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 11:04 AM
Points: 3,229,
Visits: 64,266
|
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Tuesday, July 24, 2012 11:01 AM
Points: 50,
Visits: 246
|
|
| This will not help. I need to buy a new computer.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 11:04 AM
Points: 3,229,
Visits: 64,266
|
|
|
|
|