WISE OWL EXERCISES
SSIS INTEGRATION SERVICES EXERCISES
SSIS Integration Services | Looping over rows exercise | Import all of the worksheets in a workbook into a table
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
The answer to the exercise will be included and explained if you attend the course listed below!
You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.
In Management Studio, open the SQL script in the above file and execute it to get this empty table:
This is the table you need to populate, by adding rows for each of the worksheets in the Excel workbook in the above folder.
Create a new package called Loop over worksheets, and within this a variable:
It's vital that you give this variable a value equal to one of the worksheet names, otherwise you won't be able to create a data flow task later.
Now create a package which imports each worksheet's data:
The control flow for this package
Here's what the data flow will look like:
The data flow task.
The package should populate the ADO shopping table when it runs:
The first few rows of the final table (they won't necessarily appear in this order, though).
There's not much help given above! Either refer to the courseware manual (if you're lucky enough to be sitting on a Wise Owl course), or refer to this blog otherwise.
When you've got this working, close the package down!