Search
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Articles Author
Thu, 24-Jul-2014 Authors
All Time Authors
Vishal@Neeraj
28480
Rajkatie
20600
Bharathi Cherukuri
18040

Latest members | More ...


(Statistics delayed by 5 minutes)

How to return XML in SQL Server?

 Posted by Raja on 12/14/2008 | Category: Sql Server Interview questions | Views: 6842

Answer:

We can use FOR XML statement at the end of the query to return xml data from the SQL Server.


select * from mytable for xml auto


There are three mode of returning XML and they are auto, raw and explicit

For more details see http://www.sqljunkies.ddj.com/Article/296D1B56-8BDD-4236-808F-E62CC1908C4E.scuk


Asked In: Many Interviews | Alert Moderator 

Found interesting? Add this to:



Comments or Responses

Posted by: Manikandanps@Zsl.Com on: 2/8/2013 | Points: 10

wow... nice question...

Login to post response