Ask a questionAsk a question
 

Answercopying excel source data with SSIS

  • Tuesday, November 03, 2009 1:31 PMRP Reddy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Good Day,

    I do have 4 Excel Data Sources, named as "E1","E2","E3","E4" respectively.Now,  i need to copy all the Excel source data into one Excel sheet(Destination).condition is, in  the Destination Excel Sheet, the data must be in " Source Order " like...First "E1" after "E1" then "E2",....

    Example:-

           Destination table must be like this.

                        E1
                           ------------
                           ----------
                          ---------------
                        E2
                            --------------
                            --------------
                            -------------
                        E3
                            -------------
                            -------------
                            ---------------
                         E4
                              ---------------
                              --------------
                              ---------------

     Thank you.


    Regards
    Raghu

Answers

  • Tuesday, November 03, 2009 2:58 PMSudeep Raj Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Good Day Sudeep,

    I tried by using "UnionAll" transformation, ofcourse it is copied all the excel source data into Destination excel sheet.
    i need , at the destination level, data must be in " Source Order " ( Like , i showed in my post).

    Thank you.

    Regards
    Raghu

    Hi Raghu,
    If that is the case you should Try ETL approach that he suggested in his first post

    Hi Raghu,
    if the metadata for all 4 excel file are same then use the for each loop container for the same and DFT inside the FEL.

    Thanks-
    Let us TRY this | Don’t forget to mark the post(s) that answered your question
    Set up a foreach loop for the 4 files.
    Put a DFT in the for each loop.
    In the DFT have one excel source whose connectionmanagers' conn string string should be dynamic.(use expressions)
    Use the excel destination to dump the data destination

    Check my blog which uses dynamic flat file you could modify it as per ur need.
    Hope this helps !!
    Sudeep   |    My Blog
    • Marked As Answer byRP Reddy Wednesday, November 04, 2009 11:20 AM
    •  
  • Tuesday, November 03, 2009 3:10 PMETL vs ELTL Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Raghu,
    if the metadata for all 4 excel file are same then use the for each loop container for the same and DFT inside the FEL.

    Thanks-
    Let us TRY this | Don’t forget to mark the post(s) that answered your question
    Please check the following blog for the flat file "http://www.sqlis.com/post/Looping-over-files-with-the-Foreach-Loop.aspx"

    Thanks-

    Let us TRY this | Don’t forget to mark the post(s) that answered your question
    • Marked As Answer byRP Reddy Wednesday, November 04, 2009 10:57 AM
    •  

All Replies

  • Tuesday, November 03, 2009 1:33 PMETL vs ELTL Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Raghu,
    if the metadata for all 4 excel file are same then use the for each loop container for the same and DFT inside the FEL.

    Thanks-
    Let us TRY this | Don’t forget to mark the post(s) that answered your question
  • Tuesday, November 03, 2009 1:51 PMSudeep Raj Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Good Day,

    I do have 4 Excel Data Sources, named as "E1","E2","E3","E4" respectively.Now,  i need to copy all the Excel source data into one Excel sheet(Destination).condition is, in  the Destination Excel Sheet, the data must be in " Source Order " like...First "E1" after "E1" then "E2",....

    Example:-

           Destination table must be like this.

                        E1
                           ------------
                           ----------
                          ---------------
                        E2
                            --------------
                            --------------
                            -------------
                        E3
                            -------------
                            -------------
                            ---------------
                         E4
                              ---------------
                              --------------
                              ---------------

     Thank you.


    Regards
    Raghu

    Hi Raghu,
    You could use ETL's suggestion or, if the columns are the same you can use a union all transform to the 4 XL source and then send to the Excel destination.
    Hope this helps !!
    Sudeep   |    My Blog
  • Tuesday, November 03, 2009 1:55 PMRP Reddy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Good Day,

    Could you please explain me bit clear.

    Regards
    Raghu

  • Tuesday, November 03, 2009 1:56 PMSudeep Raj Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Good Day,

    Could you please explain me bit clear.

    Regards
    Raghu


    This question is for whom?
    Hope this helps !!
    Sudeep   |    My Blog
  • Tuesday, November 03, 2009 1:56 PMRP Reddy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Good Day Sudeep,

    Yes, the columns are same.

    Regards
    Raghu
  • Tuesday, November 03, 2009 2:23 PMRP Reddy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Good Day Sudeep,

    I tried by using "UnionAll" transformation, ofcourse it is copied all the excel source data into Destination excel sheet.
    i need , at the destination level, data must be in " Source Order " ( Like , i showed in my post).

    Thank you.

    Regards
    Raghu
  • Tuesday, November 03, 2009 2:30 PMNitesh Rai Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Raghu,
    Do you know what is the order of the source (excel workbooks)?

    Nitesh Rai- Please mark the post as answered if it answers your question
  • Tuesday, November 03, 2009 2:31 PMETL vs ELTL Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi.
    please check the following link 

    this may help you. you just need to simulate with your case.

    Thanks-

    Let us TRY this | Don’t forget to mark the post(s) that answered your question
  • Tuesday, November 03, 2009 2:34 PMRP Reddy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Good Day Nitesh,

    In the Destination Excel Sheet the data must be like this,


                        E1
                           ------------
                           ----------
                          ---------------
                        E2
                            --------------
                            --------------
                            -------------
                        E3
                            -------------
                            -------------
                            ---------------
                         E4
                              ---------------
                              --------------
                              ---------------


    Regards
    Raghu

  • Tuesday, November 03, 2009 2:38 PMRP Reddy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Good Day Nitesh,

    "Do you know what is the order of the source (excel workbooks)?"

    Yes, source is Excel Sheets
  • Tuesday, November 03, 2009 2:58 PMSudeep Raj Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Good Day Sudeep,

    I tried by using "UnionAll" transformation, ofcourse it is copied all the excel source data into Destination excel sheet.
    i need , at the destination level, data must be in " Source Order " ( Like , i showed in my post).

    Thank you.

    Regards
    Raghu

    Hi Raghu,
    If that is the case you should Try ETL approach that he suggested in his first post

    Hi Raghu,
    if the metadata for all 4 excel file are same then use the for each loop container for the same and DFT inside the FEL.

    Thanks-
    Let us TRY this | Don’t forget to mark the post(s) that answered your question
    Set up a foreach loop for the 4 files.
    Put a DFT in the for each loop.
    In the DFT have one excel source whose connectionmanagers' conn string string should be dynamic.(use expressions)
    Use the excel destination to dump the data destination

    Check my blog which uses dynamic flat file you could modify it as per ur need.
    Hope this helps !!
    Sudeep   |    My Blog
    • Marked As Answer byRP Reddy Wednesday, November 04, 2009 11:20 AM
    •  
  • Tuesday, November 03, 2009 3:10 PMETL vs ELTL Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Raghu,
    if the metadata for all 4 excel file are same then use the for each loop container for the same and DFT inside the FEL.

    Thanks-
    Let us TRY this | Don’t forget to mark the post(s) that answered your question
    Please check the following blog for the flat file "http://www.sqlis.com/post/Looping-over-files-with-the-Foreach-Loop.aspx"

    Thanks-

    Let us TRY this | Don’t forget to mark the post(s) that answered your question
    • Marked As Answer byRP Reddy Wednesday, November 04, 2009 10:57 AM
    •  
  • Wednesday, November 04, 2009 10:57 AMRP Reddy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Good Day,

    Thank you.

    Regards
    Raghu
  • Wednesday, November 04, 2009 11:21 AMRP Reddy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Good Day Sudeep,

    You explained very clearly in your blog.Many Thanks.

    Regards
    Raghu
  • Wednesday, November 04, 2009 1:44 PMRP Reddy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Good Day,

    Can anybody provide me "Data Profiling Task" sample package, and links.

    Thank you.

    Regards
    Raghu
  • Wednesday, November 04, 2009 1:51 PMNitesh Rai Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Raghu,
    Please check these links for SSIS 2008 Data Profiling Task
    http://www.simple-talk.com/sql/ssis/sql-server-2008--ssis-data-profiling-task/
    http://consultingblogs.emc.com/jamiethomson/archive/2008/03/02/ssis-data-profiling-task-part-1-introduction.aspx
    Nitesh Rai- Please mark the post as answered if it answers your question