Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select a row and return as XML?
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01538717
Message ID:
01538719
Views:
41
>Hi,
>
>I need to write a stored procedure that will select a row from a table, then populate/create an XML string and return this XML string. (This stored procedure will be called from an ASP.NET application and the returned XML is parsed by C# code). My question (since I have not done it before), how do you create an XML in a stored procedure? And when you set values into this XML how to "point" to a value in the column? TIA and any suggestions or snippet of sample code.


See FOR XML clause of the SELECT statement
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform