File CreateTime using SSIS C#

  • Hello Everyone

    I am playing around with SSIS while things are slow.

    How can I read thru many files in a directory, I want to get the file timestamp for files of a certain extension, and then copy those files that qualify.

    I am using C# and SSIS. I am trying to use the script task, but there is something that I am missing with it.

    Thanks in advance

    Andrew SQLDBA

  • You could use a script task to check the last updated date of the file, and use a precedence constraint with an expression to either skip the file or process it based on that date.

    See the attached file for an example of how to do this. I've got a blog post that will be published tomorrow that goes into detail on how to do this.

    Hope this helps...

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

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