SSIS Integration Task

  • I have used SSIS a while ago where my requirement was to create a new table out of the excel sheet and name it as master table. I have updated the values of other tables using this master table and automated the whole process using sql server agent Jobs. But Now its a whole different scenario where I have an excel sheet in my local drive and I have my database in one of our test servers.. So Now I should use SSIS to map the columns of the excel sheet with the different existing tables in the database. I am little confused how I am supposed to map different columns from one spreadsheet to differnt columns of different tables..

    EXAMPLE:

    I have a database 'DATABASE'

    I have tables TABLE1, TABLE2, TABLE3

    and the spreadsheet SS

    So My columns S1, S2, S3 in the Spreadsheet SS are matched to the columns C2 in TABLE1, C5 in TABLE2 and C1 in TABLE3. There is a relationship between all the tables though.. Like C3 is common in all the above tables

    My job is to update all the columns accordingly with values in the excel sheet

    Please let me know if i can accomplish the above criteria using SSIS and if so, any ideas???

    --Pra:-):-)--------------------------------------------------------------------------------

  • Can you give some sample data?

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • If the data in SS are fixed , use below steps:

    1> Create a dataflow control tasks in ssis

    2> For data flow task - place Excel Source and OLE DB Destination ....say (table test1)

    3> In Excel Source data flow task - select "SQL Command" in Data access mode and put query like this

    Select * from [Data$A3:D8]

    Do like same for other two tables: test2 and test3

    for test2 sql command: Select * from [Data$A12:D17]

    for test3 sql command: Select * from [Data$A21:D26]

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

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