• Firstly I wouldnt use a Script task they ar quite slow and can have problems on 64bit machines if they arnt precompiled.

    I would use an Execute SQL task to get the data set and assign it to a Variable of Type Object.

    You can then use the For Each ADO enumerator to parse the Each element of Object Variable into a New Variable using the Variable Mapping section of the Loop Column 1 in the record set = Index 0 on the mappnig (Column 2= 1, and so on).

    _________________________________________________________________________
    SSC Guide to Posting and Best Practices