Knowledge Base

Weekly Tips

Q:

How do I increment a row counter that will be unique when running a parallel job with a configuration that has more than 1 node?

A:

Use the following algorithm in your transform to create a unique row count -

@PARTITIONNUM + ( @NUMPARTITIONS * ( @INROWNUM-1))