Hi,
I want to dynamically create DTS Global Variables in VBScript rather than create them up front because I do not know how many I will need each time.
If I create a global variable using the following it works fine. e.g.
but if I try to do this with a variable it errors out saying type mismatch. e.g.
Have tried Google & Tek Tips search but no luck.
Any help would be much appreciated.
I want to dynamically create DTS Global Variables in VBScript rather than create them up front because I do not know how many I will need each time.
If I create a global variable using the following it works fine. e.g.
Code:
DTSGlobalVariables("GV_Name").Value = "AnyValue"
Code:
sName = "GVName"
DTSGlobalVariables(sName).Value = "AnyValue"
Any help would be much appreciated.