Updating Global Variable via Scheduled Job

  • Hello,

    I have ActiveX script in  DTS that updates the value of a global variable:

    DTSGlobalVariables("MessageSentDate").value = Date

    This works fine when I execute the DTS manually but not when it is executed via a scheduled job.  Has anyone run into this problem before?

  • Are you expecting to open the DTS package after the job runs and see that the value of the Global Variable has been updated?  That's not going to happen. 

    The value of the Global variable will be updated within the context of the execution of the package though.

  • Yep, that is what I was hoping would happen.  Should I just use a table to store the value if I want it to persist?

  • i would think a table logging would be the best approach as the Global Variable within the DTS Package is unique to the instance of the package

    you could also have it email you

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply