﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 Integration Services  / Data Flow Destination columns copying to Data Flow Transformation Output / 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>Thu, 23 May 2013 23:52:27 GMT</lastBuildDate><ttl>20</ttl><item><title>Data Flow Destination columns copying to Data Flow Transformation Output</title><link>http://www.sqlservercentral.com/Forums/Topic442768-148-1.aspx</link><description>Preamble=======I want to take one Table and transform its Columns into another Table - many times for different tables. Each Table's Columns are completely independently named. I am using a Data Flow Transformation Script Component to do this.The (extremely simplified) Script would look something like:Dim sa() as string'Col43 is one of 50 to 90 input columns'Name1, Name2, Name3 = 3 of 50 to 90 output columnssa = Row.Col43.Split(',')Row.Name1 = sa(0)Row.Name2 = sa(1)Row.Name3 = sa(2)Problem======My problem is ... how can I get those columns from the Data Flow Destination - OLE DB Destination AUTOMATICALLY mapped into the Data Flow Transformation - Script Component, ready to use?Currently I'm typing them one at a time (anywhere from 50 to 90) in Script Transformation Editor - Inputs and Outputs - Output 0 - Output Columns - Add Column with Datatype/Length, whilst looking at the Destination Table definition. There HAS to be way to automate this ... isn't there?You know - a "copy OLE DB Destination External Columns to Script Transformation Output Columns" button?TIABrewmanz</description><pubDate>Mon, 14 Jan 2008 16:56:35 GMT</pubDate><dc:creator>brewmanz</dc:creator></item></channel></rss>