Hello everyone,
I'm looking for advice on how to deal with the import of several excel sheets to a MSSQL DB.
I have a parent-child setup where I pass the Excel ConnString to the child package to use it in the Excel source.
Now I need to set up a new package to import multiple Excel worksheets to the DB. The file can contain up to 20 sheets but I only need to get 10 of which I know the sheetnames, however some sheets are hidden.
For those 10 sheets I need two different select statements to specify the proper range import.
So I was thinking I could use a script task to get the desired sheets and put them in a object variable which I can then use inside a for-each loop with a dataflow task.
And this is where questions arise:
What happens inside the dataflow task? I guess I can't use the Excel source component nor the OLEDB-target. I also need to add some derived columns of variables I get from the parent package. How would I assign the proper select statement to the according sheet? Looks like the script component is what I need. But how?
Feel free to post links with examples and let me know if I'm on the right track here.
thank you.