Use a Sequence transformation to generate a sequence of numbers in the following ways:
Generate a sequence of unique numbers.
The sequence begins with the Initial Value that you specify.
Generate a cyclic sequence of numbers.
You can establish a range of values for the Sequence transformation. If you use the cycle option, the Sequence transformation repeats the range when it reaches the end value. For example, if you set the sequence range to start at 10 and end at 50, and you set an increment value of 10, the Sequence transformation generates the following values: 10, 20, 30, 40, 50. The sequence starts over again at 10.
Doesn't apply in
advanced mode or
SQL ELT mode.
Continue an existing sequence of numbers.
Each time you run the
mapping
task, the task updates the value to reflect the last-generated value plus the Increment By value. If you want the numbering to start over each time you run the task, you can enable the Reset configuration property.
Generate a sequence of unique numbers for multiple partitions using the same Sequence transformation.
You can specify the number of sequential values the
mapping
task caches at a time so that the task doesn't generate the same numbers for each partition. You can't generate a cyclic sequence of numbers when you use the same Sequence transformation for multiple partitions.