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