Creating variables at package runtime

  • I am migrating a dts package to ssis package. In my dts package, there is a ActiveX script to retrieve metadata from database and create global variables to hold these data.

    But it seems in ssis Script task, we can only modify an existing package variable and unable to create new variables at runtime. How do we handle this task in SSIS package? How do we create variables at package runtime? Thanks Jane

  • hi,

    you can use the script task editor with the following code

    Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)

    Dim objVar1 As New Variable

    objVar1.Value = "Test"

    objVar1.Namespace = "TempVar"

    End Sub

    Thanks

    vijay

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

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