Created
July 17, 2015 17:38
-
-
Save joymon/79f6a4cd476c0e98dfc2 to your computer and use it in GitHub Desktop.
SSIS_ScriptTask_Square
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Main() | |
{ | |
int currentCounterValue = Convert.ToInt32(Dts.Variables["counter"].Value); | |
int square = currentCounterValue * currentCounterValue; | |
Dts.Log(string.Format("Inside custom script block value of counter is {0} square is {1}", | |
currentCounterValue, | |
square), | |
0, | |
new byte[0]); | |
Dts.TaskResult = (int)ScriptResults.Success; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment