Globe Code in DTS VBScript

  • Can SQL Server 2000 DTS Package Handle Globel Code Functions?

  • I don't know any way to use Global functions in a DTS Package . Instead you can use a Public function within an activeX script.

     

     

  • How do i call a public function

  • Functions are treated as in VB. You can have as many function as you like within an ActiveX script BUT you cannot use ANY of them in another ActiveX script inside you package. the same applies to the ActiveX script a task might have. Try it.

    Function Main()

      call DisplayMsgBox("This is a test")   

    end Function

    Function DisplayMsgBox(MyMessage)

       msgbox MyMessage

    end function

    Dimitris

    ....

     

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

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