﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Integration Services / Data Warehousing  / Convert Currency in SSIS / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 18 May 2013 04:03:23 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Convert Currency in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic1422555-364-1.aspx</link><description>My WSDL is not that strong but I would go along the lines of using a dataflow in the format:Data source to get your data which feeds a script component synchronous transform which:Set the input USDAmount column to read/writeIn the PreProcess method sets up the WSDLIn the ProcessInputRow method pass the date, currency code and amount to the WSDL and uses the object attribute to apply the conversion to the currency value and store the result in the USDAmount column.The performance will not be great since the web service will be called for each row.If possible pre-sort your amounts by date and currency.  This means that you can optimise the script component to only access the web service and get the exchange rate on a change of date and/or currency</description><pubDate>Thu, 21 Feb 2013 12:47:05 GMT</pubDate><dc:creator>jm99</dc:creator></item><item><title>Convert Currency in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic1422555-364-1.aspx</link><description>Hello,has anyone used SSIS to convert currency based on a date from a table?For example;If I have a table with the following Columns;Amount    Currency     USDAmount    InvoiceDate1000          CAD             NULL              NULLI would like to possibly use a free web service that will look at my Invoice Date and do the Math based on the Spot currency rate for that time and return the converted US Dollar amount.Thanks</description><pubDate>Thu, 21 Feb 2013 06:54:15 GMT</pubDate><dc:creator>mbrady5</dc:creator></item></channel></rss>