Basics of XML and SQL Server, Part 5: Generate/Transmit XML with SSIS
By Stan Kulphttp://www.sqlservercentral.com/articles/Integration+Services+%28SSIS%29/77306/
The attached EmailFtpXmlInvoice.dtsx demo SSIS package queries the Clients table for client ids, then loops through the client ids to:
- Generate invoice XML code for each client using a set of FOR XML queries.
- Save the invoice XML code to an XML file.
- Email the XML invoice file to the client if there is an email address for the client in the lookup table.
- FTP the XML invoice file to the client's server if there is FTP server information for the client in the lookup table.
If you don't have access to SMTP and FTP servers, the 'Install and Configure Local FTP and SMTP Servers' section of this article explains how to download, install and configure free SMTP and FTP servers for testing purposes.
No comments:
Post a Comment