0

C# を使用してスクリプト コンポーネントの変数に値を代入しようとしていますが、できません。誰でもコードを投稿するか、以下の何が問題なのか教えてください。

public override void PostExecute()

    base.PostExecute();
    IDTSVariables100 varCollection = null;
    this.VariableDispenser.LockForWrite("User::Variable");
    this.VariableDispenser.GetVariables(out varCollection);

    varCollection["User::Variable"].Value = @"TESTING";
    MessageBox.Show(Variables.MerchOrgName.ToString());
4

1 に答える 1

0

この例は非常に包括的です。ほとんどの場合、2 つの方法のうち簡単な方で十分です。特に始めたばかりの場合はなおさらです。

http://microsoft-ssis.blogspot.com/2011/01/how-to-use-variables-in-script.html

于 2013-10-23T22:04:51.673 に答える