Feb 20, 2003 #1 joemal Programmer Joined Feb 12, 2003 Messages 13 Location MT I am trying to build an XML file from an SQL2000 database to output it as a file. Can anyone help? I have a pre defined standard of the XML output. Thanks
I am trying to build an XML file from an SQL2000 database to output it as a file. Can anyone help? I have a pre defined standard of the XML output. Thanks
Feb 20, 2003 #2 chiph Programmer Joined Jun 9, 1999 Messages 9,878 Location US Run your SQL query with the "FOR XML AUTO" clause. You'll get back a single string that has the results of your query as XML. You can then use a standard StreamWriter object's Write() method to send it to a file. Chip H. Upvote 0 Downvote
Run your SQL query with the "FOR XML AUTO" clause. You'll get back a single string that has the results of your query as XML. You can then use a standard StreamWriter object's Write() method to send it to a file. Chip H.