Skip to content

Instantly share code, notes, and snippets.

@joymon
Created July 17, 2015 17:38
Show Gist options
  • Save joymon/79f6a4cd476c0e98dfc2 to your computer and use it in GitHub Desktop.
Save joymon/79f6a4cd476c0e98dfc2 to your computer and use it in GitHub Desktop.
SSIS_ScriptTask_Square
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