WISE OWL EXERCISES
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 | Previous versions exercise | Create a to-do list every Monday and copy it to a folder
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 on the relevant Wise Owl classroom training course (sadly for the moment only in the UK).
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.
Every Monday you import a list of tasks created for you by your kind manager into a flat file, and then copy this file to a working folder. This exercise will help you create a package to automate this process!
What the final text file created by the package should look like.
First, within Management Studio open the script called Create list.sql in the above folder, and run it to create a table of to do tasks.
Now create a package called I like Mondays. Within this, create a variable to hold the weekday number:
This will hold the weekday number (1 is Monday, 2 is Tuesday, etc.).
Create a package to import the SQL Server table into a flat file (on Mondays only), then to copy this flat file to the Working folder subfolder of the above directory:
What the final package could look like.
You may find the following expression useful: DATEPART( "dw", GETDATE() )
Test your package works (you may need to change the day of the week being tested to do this), then close it down.