Data manipulation issue

  • Hi

     

    I am facing a issue while writing a SSIS. The requirement is as below:

     

    Source Table; Have Col A,B,C,D,

    Destination Table: Have Col X

    Aim:

    Values of cells in A,B,C,D for each row will be inserted in Destination table’s X column as independent column. [ie. For each row in source, there will be 4 rows in destination]

     

    Could any one kindly guide me on how to proceed? Thanks in advance.

     

    Regards

    Utsab Chattopadhyay

  • This was removed by the editor as SPAM

  • Thanks Site owners. I am still struggling and started to believe that may be we need to write a .net script for it. Any other thoughts please?

     

    Regards

    Utsab Chattopadhyay

  • If I understand your problem correctly, I think that the Unpivot transformation should work.

    http://msdn2.microsoft.com/en-us/library/ms141723.aspx

  • Note also that if this is a SQL Server table, there is a PIVOT and UNPIVOT option in T-SQL. You may find this easier to implement than the un/pivoting components in the dataflow transformations as they are quite laborious to set up!

    You should be able to find out the syntax from books online.

    Kindest Regards,

    Frank Bazan

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

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