Public Sub Main() MessageBox.Show("TotalCount" & Dts.Variables("TotalCount").Value.ToString()) Dts.Variables("TotalCount").Value = Convert.ToInt32(Dts.Variables("TotalCount").Value) + Convert.ToInt32(Dts.Variables("Insert_Count").Value) Dts.Variables("ErrorNewRowCount").Value = Convert.ToInt32(Dts.Variables("ErrorNewRowCount").Value) + Convert.ToInt32(Dts.Variables("Error_Count").Value) MessageBox.Show("TotalCountContainer" & Dts.Variables("TotalCountContainer").Value.ToString()) MessageBox.Show("TotalCount" & Dts.Variables("TotalCount").Value.ToString()) Dts.Variables("Insert_Count").Value = 0 MessageBox.Show("TotalCount : " & Dts.Variables("TotalCount").Value.ToString()) MessageBox.Show("ErrorNewRowCount : " & Dts.Variables("ErrorNewRowCount").Value.ToString()) Dts.TaskResult = ScriptResults.Success End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)