Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Import Excel into SQL Server using SSIS dynamically Expand / Collapse
Author
Message
Posted Sunday, March 24, 2013 10:26 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, February 24, 2014 9:35 AM
Points: 10, Visits: 83
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
Post #1434681
Posted Sunday, March 24, 2013 11:52 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 9:25 AM
Points: 7,070, Visits: 12,523
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

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

Believe you can and you're halfway there. --Theodore Roosevelt

Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein

The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein

1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
Post #1434687
Posted Sunday, March 24, 2013 11:08 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, February 24, 2014 9:35 AM
Points: 10, Visits: 83
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
We are good to close this post.
Post #1434748
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse