Hi, the ssis package loops through a folder using a foreach loop container and imports the data inside each .csv file into the database. Now I would like to add the functionality to first check the modified date of the .csv file. If it is NOT today's date then the package should fail or go to error. Any thoughts how to do this please? Thanks
You could take help of CLR Procedures here, by writing a code in VB or .net to findout the modified date of source file, not sure you might check http://www.sqlis.com for more information.
You can use SSIS script components I can send you a sample if you send me a mail to dineshasanka@gmail.com
I can't copy and paste here as I am going to send an sample SSIS pacakge for you. Send me the copy of the CSV as well if u wish to