SSIS 2008 Script Task and Package Variables

Does anyone else have difficulty working with SSIS and package variables.

The variables are defined, and in testing I am updating the value to a static value. Code seems to run fine, but at the end, I have no evidence in the IDE that the value changed. Is this normal behavior?

 

        public void Main()

        {

 

 

           // TODO: Add your code here

            Dts.Variables[“v_startdatesec”].Value = 10;

           Dts.TaskResult = (int)ScriptResults.Success;

        }

 

Does SSIS 2008 share the behavior I am accustomed to in DTS where if a variable is updated, the value remains changed when I return to the editor?

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s