Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS 2012: Split project Parameter string value and loop through split values

$
0
0

I am currently working on an SSIS solution which employs a parent child design pattern. There is a Sql table which contains field that determine what packages should run. Currently I use a SQL task to load values into a ADO recordset and the use a foereach loop container to loop through the record set and execute the necessary package within the ForEach container.

I vaguely remember reading somewhere online (can't remember now) where it was suggested that you could use a project parameter to store the values as opposed to an Sql table. For example you could declare a project parameter as a string with a value like:   value1;value2;value3;value4.  I think you could then split the string based on the semi-colon separator. With the value split you can then use the Foreach loop container to loop through the values.

I find this solution much better as I can keep functionality within the SSIS framework. My question is how do you it? How can I split the project parameter and then pass the values to a ForEach container such that it can loop through the split values.

Any Ideas?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>