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.…
Author
Released
2/3/2015- 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
Duration
Views
Related Courses
-
Querying Microsoft SQL Server 2012
with Gerry O'Brien5h 34m Beginner
-
Introduction
-
Welcome1m 7s
-
Using the exercise files16m 23s
-
-
1. Architecture
-
Understanding packages6m 50s
-
Managing with control flow6m 46s
-
Moving data with data flow4m 12s
-
Understanding variables7m 7s
-
Understanding parameters7m 18s
-
2. SQL Server Integration Services Tools
-
3. SQL Server Integration Services Tasks
-
Coding the Script task3m 10s
-
Looping and Sequence tasks5m 25s
-
Data Preparation tasks12m 49s
-
Using the Workflow tasks7m 42s
-
-
4. Data Flow
-
5. Variables, Parameters, and Expressions
-
6. Performing Joins
-
7. Debugging SQL Server Integration Services Packages
-
Using events3m 47s
-
Working with logging4m 36s
-
Handling errors6m 20s
-
8. Common Designs in SQL Server Integration Services
-
Working with XML7m 35s
-
Deployment2m 29s
-
Best practices3m 29s
-
Conclusion
-
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.
CancelTake 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.
Share this video
Embed this video
Video: Looping and Sequence tasks