SSIS INTEGRATION SERVICES EXERCISES▼
- Data flow tasks (4)
- Basic data transforms (1)
- Data conversion transforms (2)
- Conditional split transforms (5)
- Lookup transforms (4)
- Looping over files (3)
- Looping over rows (2)
- Merge joins (1)
- Previous versions (18)
- Script tasks (1)
- Variables in script (1)
- Script components (2)
- Accessing file attributes (2)
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.
You can learn how to do this exercise if you attend one of more of the courses 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!