jschroeder wrote: i'm trying to save data to an XML file from an OLE DB source using the "For XML" clause in the SQL command. Do I need to use a flat file connection manager or a raw file connection manager? And what destination do I use?
There are no built in components to allow you to output as XML but Donald Farmer's book contains code showing you how to do it in a script component.
If you don't want to buy the book (although i recommend you do - its very cheap) then read this:
Output a file as a csv or an XML file
(http://blogs.conchango.com/jamiethomson/archive/2006/07/11/4209.aspx)
-Jamie
|||Save it to a flat file destination. It's just text, and you can give it whatever file name you want.|||I've been unsuccessful with that. I got an error that said the input of data type DT_IMAGE is not allowed. I tried using the data conversion component to convert to DT_TEXT, but got garbage in the output file.
No comments:
Post a Comment