Creating Union All transform dynamically in SSIS

  • when there 2 columns with the same name in the flow (from different components)

    the union all complains that the package contains 2 objects with duplicate name.

    Someone knows whats the best way 2 deal with it?

    Thanks ahead

    ERan

  • I am having the same problem. Has anyone solved this?

  • nmeseth (10/16/2009)


    I am having the same problem. Has anyone solved this?

    You can change the name of the data flow column to be different than the original source column. This will resolve the duplication issue.

    ---
    SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

  • Not just Union All, there are other components that would have the same issue in case of duplicate column names. Its a better practice to keep column names unique as far as possible.

    --Siddharth

  • Siddharth Mehta (10/21/2009)


    Not just Union All, there are other components that would have the same issue in case of duplicate column names. Its a better practice to keep column names unique as far as possible.

    --Siddharth

    Like 'ID', for example? Or 'Description'? Or 'State'?

    There are perfectly legitimate reasons for duplicate column names appearing in multi-table queries and qualifying or aliasing such column names to uniquely identify the ones which are required is also fine, IMO.

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

Viewing 5 posts - 1 through 4 (of 4 total)

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