Home > SSIS > Show Expression Logic in SSIS Task Links (Constraints)

Show Expression Logic in SSIS Task Links (Constraints)


As part of my campaign to make logic discovery easier in SSIS for my future self I discovered by chance today a great little feature.
Often key logic can be build into the constraints (the red/green arrows) between tasks in the form of expressions. The logic is not visible without showing the properties of the constraint or by double clicking on it.

 

A simple SSIS package including some constraint expressions where the logic is not clear.

Often the logic for a package can be hidden in constraint expressions.

 

However in the properties for a constraint there is an item called “ShowAnnotation”. Set this to “ConstraintOptions” and the logic of the constraint is shown as an annotation next to the constraint. Brilliant!

There are a few other options, such as “ConstraintDescription” which can be useful to summarise the logic if it grows to long. An example is shown below.

 

Properties window in SSIS highlighting the 'ShowAnnotation' property.

Properties window in SSIS highlighting the ‘ShowAnnotation’ property.

 

Rather sadly the layout of the constraint annotation is not brilliant, so sometimes it overlaps other items when ‘Auto Layout’ is used. However, in allowing an understanding of process flow logic at a glance, it’s great.

 

A simple SSIS package including some constraint expressions where the logic is made visible via annotations.

The logic of the constraint expressions shown by setting ‘ShowAnnotation’ to ‘ConstraintOptions’.

 

 

  1. Adam
    June 16, 2014 at 9:32 am

    Most Excellent Find!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: