Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
querry is
declare @x as xml;
set @x= (Select * from table for xml path ('Child'),root('Parent')
select @x
Posted

1 solution

In this case you would get @X return to the aspx client as a string, use the string to save the data to the disk.
 
Share this answer
 
Comments
BharatKaushik 3-Jul-13 3:14am    
how i retrieve this value at aspx.cs page to make an xml file plz give me code to implement
Mycroft Holmes 3-Jul-13 3:54am    
Sorry that is your job, I have given you the pointers. Getting the XML data from the database is the same as getting any other type of data except you use ExecuteScalar to get a string variable instead of a dataset

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900