Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get nicely-formatted XML from SQL?

Status
Not open for further replies.

PPettit

IS-IT--Management
Sep 13, 2003
511
US
I'm working on a query that will be used to automatically generate XML files overnight. I'm trying out BCP to accomplish this. The only problem with this method is that the output is just one long, continuous string. Is there an easy way to add indentation to the XML data so that it looks nicer?

It seems like my only options are to use a format file with BCP, or to use a third party app such as TIDY. Are there any other options that might be better?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top