Overview
Data flow destination, storing the values from selected input column(s) into SSIS variable(s). If only one input column is selected, then the specified variable is used, otherwise - the name of the columns are used as variable names in the User namespace. If no input column is chosen, the destination can be used for trashing the data.
When there is more than one row in the input, the excess values can either be (a) ignored, and only the first one stored, (b) overwritten, storing the latest, (c) stacked in an array, essentially providing column-wise extraction of the data, or (d) the whole component failed, indicating the unexpected multiple rows.
Setup
The script has the following parameters:
- InputColumns - the input columns to store in the variable(s).
- StoreVariable - the name of the variable to store the value, if only one column is selected.
- MultiRowAction - which type of behavior to choose, when there is more than one row in the input. The choices are:
Ignore
,Overwrite
,Array
andFail
.
Configuration
To use this script, you would need to load it in COZYROC JavaScript Component. If you are using COZYROC SSIS+ 2.0 or later, after selecting the corresponding script type and opening the component editor, you can select the script from a dropdown list with the pre-built scripts. For COZYROC SSIS+ 1.9, you can download the JavaScript file and browse to it via the "Import JavaScript code" button.

Knowledge Base
COZYROC SSIS+ Components Suite is free for testing in your development environment.
A licensed version can be deployed on-premises, on Azure-SSIS IR and on COZYROC Cloud.