Sorted File Enumerator (SSIS)

  • Hello,

    I am looking for solution how to loop through sorted list of files and load them into database in that sorted order. I've found e.g. this http://microsoft-ssis.blogspot.cz/2011/04/how-to-configure-foreach-loop-container.html but unfortunately it does not working. The problem is with the Script Task. There is error with it, with this line of code:

    [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]

    The AddIn here is underlined. So I tried to remove this line, but it is still not working.

    I am using Visual Studio 2014, 64-bit.

    Dont you know what could be wrong? Or are you aware of any other solution that fits MS VS 2014?

    Thank you.

    Regards,

    g

  • Hello,

    You don't have to copy the snap-in line, only the code between

    public void Main()

    {

    ....

    Dts.TaskResult = (int)ScriptResults.Success;

    }

    Don't forget

    using System.IO; // Added

    at the beginning, so the code can use fileInfo

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

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