I have a Source Script Component in SQL2012. I believe if you want to set a Read/write variable in the Scriptcomponent it must be set in the Postexecute method . And I have done so like this;
public override void PostExecute()
{
base.PostExecute();
Variables.value1 = "some value";
}
I tested the variable after the script component ran and found it hadn't been set. I set a break point in the PostExecute method and confirmed it never gets called.
I even wrote a very simple new package and tested it again with the same results. Can anyone tell me why the PostExecute will not fire.
I'm not aware of any restrictions on seting a variable here (regardless of if there are records to process or not).