Import Excel into SQL Server using SSIS dynamically

  • Hi Experts,

    Can anyone explain me step by step how to import excel into SQL server database using SSIS dynamically and automate it (run the package on weekly basis)

    Here are few conditions:

    1. System folder remain constant but Filename can be anything

    2. Report out if any additional fields are added to the excel data after the design.

    3. Archive processed files to Processed folder

    4. It should pick the latest excel in this folder.

    Any help is highly appreciated

  • casanova (3/24/2013)


    Hi Experts,

    Can anyone explain me step by step how to import excel into SQL server database using SSIS dynamically and automate it (run the package on weekly basis)

    Here are few conditions:

    1. System folder remain constant but Filename can be anything

    2. Report out if any additional fields are added to the excel data after the design.

    3. Archive processed files to Processed folder

    4. It should pick the latest excel in this folder.

    Any help is highly appreciated

    Condition 2 is going to be a tough requirement to meet with standard SSIS components. SSIS likes for the metadata to be defined at design-time. If anything is different at runtime SSIS is not easily adapted to pickup the changes.

    If you can live without condition 2 then this may help:

    Using the Script Task in SSIS to Process Data Files When They Arrive[/url]

    Else, you may look into using the Excel Object Model in a Script Task to determine if structural differences exist in the spreadsheet.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • I dont mind ignoring the second condition as far as it satisfies the rest of them. Thank you so much for your help on this post. Much appreciated:satisfied:

    We are good to close this post.

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

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