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

SSIS Variable not changing through script.

$
0
0

I have created a Script Task in a data flow, in which for debugging purposes, I have done the following:

    public override void PostExecute()
    {
        base.PostExecute();
        /*
         * Add your code here
         */
        this.Variables.maxNum = 55;
    }

maxNum in this case is an int32 variable with package-wide scope and starting value 0.

After the script task, I have a Derived Column task which creates a new column for each row containing the variable, but the variable is always 0. Is there anything I am doing wrong? 


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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