Click here to Skip to main content
15,886,611 members
Please Sign up or sign in to vote.
1.22/5 (2 votes)
See more:
Hello,
i am trying to transfer a data from a database to an xml file,,,i've been able to do that but the little problem is when i include the "where clause" in the sql statement, the data displays without the xml tags...could anyone help...i want the tags to be displayed.
thanks
Posted
Updated 31-Oct-12 5:17am
v2
Comments
wizardzz 31-Oct-12 11:37am    
Could you possibly include the queries that work and don't work?

1 solution

this statment it is run and get tag for every row so what's the problem

SQL
select * from Countrys  where Country_ID>0  FOR XML AUTO



If you want tag for every column use this statment

SQL
select * from Countrys  where Country_ID>0  FOR XML Path
 
Share this answer
 
v2

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