Hi, all,
i have a strange problem with the following VBscript-Code:
Code:
Function Main()
...
''''''''''DTSGlobalVariables("myGlobVar").Value = "xyz"
If DTSGlobalVariables("myGlobVar").Value = "xyz" Then
sTmpVar = DTSGlobalVariables("myGlobVar").Value
retVal = doSomething( sTmpVar )
MsgBox retVal
End If
Function doSomething( sTmpVar )
...
doSomething = retVal
End Function
The Problem is with the following call from a SQL-Stored Procedure:
dtsrun /S myserver /U sa /P sa /N MyPacket /M sa /A myGlobVar:8="xyz"
At runtime, the If-Condition gets true, but then sTmpVar is NULL
and I get the report of a runtime error in doSomething().
The DTSGlobalVariable is set correctly in the Package Properties
and when I set the DTSGlobalVariable inside the Main-Function of this
script, it works.
Thanks for every tip
willi