Validate SSIS Scripts Before Closing the VSTA Window

I love learning new stuff!

I’m blessed to work with a talented group of individuals at Linchpin People. We often work together in teams and I have to admit, I cherish those times. One reason is I learn something new. Every. single. time.

For years, I’ve validated SSIS Script Task code by searching for red and blue squiggly lines before closing the VSTA window:

SSISScriptingRedSquigglyLines

With a small amount of scripting, the squiggle-search is a fine method for catching typos and similar errors. For larger amounts of code, though, this could take time and one could easily overlook a typo or squiggle.

I learned a neat trick while pair programming with Kevin Hazzard (Metaprogramming in .Net | @kevinhazzard): I can execute a Build before leaving the VSTA window and test the viability of the code.

From the VSTA window dropdown, click BUILD and then Build <VSTA Project Name>:

ExecuteVSTABuild

If there are errors (and there are a couple errors in my string variable declaration above), they will appear in the Error window:

VSTAErrors

If there are no errors or after I have corrected all errors, the build will succeed and I will see a note in the lower left corner of the VSTA window:

VSTABuildSuccess

:{>

Learn more:  
SSIS Design Patterns training in London, UK, 7-10 Sep 2015
Advanced SSIS Training with Andy Leonard & Tim Mitchell in Reston Virginia Dec 7 – 10, 2015

Stairway to Integration Services
Linchpin People Blog: SSIS
Stairway to Biml

SSIS Design Patterns

Andy Leonard

andyleonard.blog

Christian, husband, dad, grandpa, Data Philosopher, Data Engineer, Azure Data Factory, SSIS guy, and farmer. I was cloud before cloud was cool. :{>

2 thoughts on “Validate SSIS Scripts Before Closing the VSTA Window

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.