how to pass variable to child package in execute package task

  • Hi,

    im using a foreach loop to load many excel sheets in a file to database.

    to avoid complexity i split the package into two. so when i pass the filename variable to the child package it is not taking it.

    can anybody help me how to pass variable to child package.

    thanks in advance,

    karthik

  • Hi,

    Personally I believe that we can't paas variable into child package.

    Best thing you can do is that create two child packge having the variables and call these packages into parent package.

  • You have to add a Parent Package Variable configuration to your child package.

    http://technet.microsoft.com/en-us/library/ms345179(SQL.90).aspx

  • You could also use two For..Loop containers. The outer to loop through each .xls file and the inner to loop through each sheet in a file. The difference with a usual setup is you need to use a .net connection to retrieve the sheet names.

    http://msdn2.microsoft.com/en-us/library/ms345182.aspx

    -------------------------------------------------------------------------
    Normal chaos will be resumed as soon as possible. :crazy:

  • hi,

    that link was awesome..

    thanks everyone for helping me out..

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

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