Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to retrieve XML into variable.
Message
From
29/09/2003 13:10:25
 
 
To
29/09/2003 12:12:09
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00832993
Message ID:
00833215
Views:
25
Use Command.ExecuteXMLReader() to retrieve the XML. You'll probably have to use a combination of XmlTextWrite, StringWriter, and StringBuilder to get the XML into a string.

-Mike

>Can you recommend code that I could use from C# in ASP.Net?
>
>For example how do I call a SPROC that returns XML to a C# variable.
>
>ie..
>
>var = Command.ExecuteNonQuery().
>
>Such that var ends up with XML from the sproc that uses the FOR XML....
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform