Generate XML from SQL Server

What are my options for returning XML to a client application from SQL Server? I have an XSD that I want to apply to some data, but don't want to build the XML from a result set if I can avoid it.

more ▼

asked Oct 19, 2009 at 11:11 AM in Default

avatar image

Steve Jones - Editor ♦♦
5.1k 79 93 87

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

This article at Simple-Talk goes over XML pretty well. You should be able to extrapolate your answer from there:


You can also get lots of help from the MSDN forums on XML:


And for brevety's sake, here's the BOL link to XML in SQL 2005


more ▼

answered Oct 19, 2009 at 11:14 AM

avatar image

Jorge Segarra
419 2 4

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Oct 19, 2009 at 11:11 AM

Seen: 2427 times

Last Updated: Oct 19, 2009 at 11:11 AM

Copyright 2016 Redgate Software. Privacy Policy