What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 19194 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > SQL Server Interview Questions > How to return XML in SQL Server? ... ...

How to return XML in SQL Server?

Interview question and answer by: Raja | Posted on: 12/14/2008 | Category: SQL Server Interview questions | Views: 3505 |


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:


 Responses

Posted by: Manikandanps@Zsl.Com | Posted on: 08 Feb 2013 01:43:58 AM | Points: 10 | Alert Moderator 

wow... nice question...

>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Raja

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/24/2013 4:22:36 AM