Join Ron Davis for an in-depth discussion in this video Looping and Sequence tasks, part of SQL Server Integration Services.
Let's take a look at the containers,…and we have three containers.…First we're going to look at the ForLoop,…and the ForLoop container like its peer, ForEach,…is very similar to the same constructs…that you find in programming languages.…The first thing we did, we created a counter…that we can track, and we set that up under variables.…I named it MyCounter, and it's a Int32,…and its value is one.…And then within the ForLoop, we came through…and we initialized it, this is an InitExpression,…@MyCounter = 1, and then we evaluate,…so we evaluate that MyCounter <= 3,…and based on the evaluation, we're gonna continue the loop.…
Now every pass we're gonna add one into the counter,…which takes the current value of MyCounter…and increments it by one, and we'll say, "OK."…And all's we're gonna do is call our little Script task,…the Script task simply has a message box in it…that's going to pop up and say, "One, two and three,"…so that we can see that the loop actually executes.…We'll come over here and execute the package.…
- Creating SSIS packages
- Coding and looping tasks
- Managing and administering SQL with SSIS tasks
- Optimizing data for extraction
- Making packages dynamic with variables and parameters
- Using sequences in a container
- Performing joins
- Handling errors
- Working with XML
Skill Level Intermediate
Querying Microsoft SQL Server 2012with Gerry O'Brien5h 35m Beginner
2. SQL Server Integration Services Tools
3. SQL Server Integration Services Tasks
4. Data Flow
5. Variables, Parameters, and Expressions
6. Performing Joins
7. Debugging SQL Server Integration Services Packages
8. Common Designs in SQL Server Integration Services
Where to go next37s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.