Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
551 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Software ==> | SSIS Integration Services (28 exercises) |
Topic ==> | Looping over files (3 exercises) |
Level ==> | Average difficulty |
Subject ==> | SSIS training |
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.
In Management Studio, open the SQL script in the above folder and execute it to generate an empty table:
Your package should fill this table!
The idea is to combine data from the three workbooks in this folder into a single table:
The final result your package should produce: a list of songs in the original empty SQL Server table imported from each of the Excel workbooks in the above folder.
Start by creating a package called Something for everyone which looks like this:
To start with, just get the data flow task to import the Anyone.xlsx data into your Playlist table (we'll worry about changing this file in a moment).
When you run this package, you should get a bit of repetition:
Adele is good, but not THAT good - we've imported rows from the same workbook 3 times over.
Now change the properties of your Excel connection manager so that the connection is an expression whose value changes each time round the loop:
Much better!
How much energy do you still have left? You could always add a derived column transform within the data flow task to generate the target market column value. Here's a suggestion for the (horrible) expression you could use:
REPLACE(RIGHT(@[User::FilePath],
FINDSTRING(REVERSE(@[User::FilePath]),
"\\",1) - 1),".xlsx","")
And now it's definitely time to close the package down!
You can find other training resources for the subject of this exercise here:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.