SSIS Process files that has been downloaded in the last hour
A recent question on SQL Server Central was asking about how to process the last hour downloaded files. I think it's fairly simple using a script task to get the files creation date property, and then added a constant constraint to check the difference between now and the creation date, then pass through to the data flow task to process the file. I've created 6 variables, I'm here getting more usable file properties, but you don't have to do that, I'm just here showing the concept more than doing the exact time difference. Add a "foreachloop Container" and a "script task" inside. edit the "Foreachloop Container" location to your file system location. (the one that has your files). Map the 'FilePath' variable to the output of the "foreachloop" Edit the "Script Task" ,I'm using VB.net language here. Imports System Imports System.Data Imports System.Math Imports Microsoft.SqlServer....