Is there an easier way to define output columns for a script transformation?

  • I have a script transformation component that I'm defining output columns for the output; my destination table has something like 200+ columns, lots of it just incremental repeating (name1, name2, etc...)

    Is there any other way I can define all of the outputs without having to click Add Column, click to rename it, click to change the datatype, click to change the length, ad nauseum? Can I copy and paste lines in code or something? I looked at the codefile for the package, and found the location, but there's an incremental ID on the columns....can I just copy and paste and it would be OK? How else can I do this?

    Thanks!

  • Perhaps use a derived column transform? - though that wil be pretty labourious as well I guess...

    Something I often do is "create" the columns in the original select statement (asumming a database source).

    e.g. SELECT CONVERT(varchar(50),NULL) AS name1,

    CONVERT(SMALLINT,NULL) AS intCol1

    I'm not sure if it's best practice but it does add columns with the name you want & the correct data type into the Workflow....

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply