The GlobalVariable2 object defines a variable that allows data to be shared across steps and Microsoft® ActiveX® scripts.
The GlobalVariable2 object extends the functionality of the GlobalVariable Object and inherits the properties and methods of that object. In addition, the Lock and Unlock methods allow a task to acquire a GlobalVariable2 object for exclusive use and to later release it.
For more information about when to use the GlobalVariable object instead of the GlobalVariable2 object, see Extended DTS Objects.