1
난 내가 스크립트 작업에 읽기/쓰기 할 필요가 Valint라는 변수가 있지만, 작동하지 않는 것 :SSIS 스크립트 작업에 변수에 읽기/쓰기
public class scriptmain
inherits usercomponent
dim counter as integer
dim Valint as integer
.....
Public sub new()
counter = 0
end sub
public overrides sub input0_processintputrow(byval row as input0buffer)
Dim vars as IDTSvariables100 = nothing
Me.variableDispenser.lockforread("User::Valint")
Me.variableDispenser.GetVariables(vars)
counter = CType (vars("User:: Valint").Value, integer)
vars.Unlock()
counter +=1
Me.VariableDispenser.LockoneForWrite("User::Valint", vars)
vars("User::Valint").Value = counter
vars.Unlock()
End Sub
들어 어떤 이유로 든 제 출력물은 항상 0입니다