Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SQL to XML to ZIP via SSIS

$
0
0

Hi there - I am looking at a way to automate a labour intensive manual process (which I run 2 -3 times a day!).

In summary here it is:

1. I run an SQL script which carries out a number of select, inserts, updates.
2. I then select the data from the 10 (or so) updated tables using the SELECT... FOR XML syntax (which returns the data as XML within the query window).
3. I then copy and paste the formatted data into textpad and save as XML - (I also have to add the XML header row).
4. Once complete I ZIP the 10 files and deploy to a shared location.

Now I imagine (hope!) there is a way to use SSIS to run the script, produce the XML (for each table) and save it into separate XML formatted files.

Can anyone point me in the right direction?? Even just having an example of a job which can return data as XML from a table and save into a file and then ZIP would give me enough to go on.

Thanks


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>