Getting Package Names & Id's

  • Is there a function or stored procedure where I can capture the name & id of a DTS package?

  • You can use the DTS object model within a ActiveX script task. Use the following code to put the Name and ID's into Global Variable's

    Dim objCurrentPackage

    Set objCurrentPackage = DTSGlobalVariables.Parent

    DTSGlobalVariables("PackageName") = objCurrentPackage.Name

    DTSGlobalVariables("VersionID") = objCurrentPackage.VersionID

    DTSGlobalVariables("PackageID") = objCurrentPackage.PackageID

    Happy coding,

    Diane

Viewing 2 posts - 1 through 1 (of 1 total)

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