Check a file's last modified date
Hi,In SSIS, how can you write an expression that checks if a file got modified today?Thank you.
June 20th, 2008 2:20pm

The only way to do this using out-of-the-box components is to use the Script Task- in the script code use the File.GetLastWriteTime method: http://msdn.microsoft.com/en-us/library/system.io.file.getlastwritetime.aspx You can then have your script task write the value you need to a package variable, and then base the expression on the value of that variable.
Free Windows Admin Tool Kit Click here and download it now
June 20th, 2008 3:04pm

You can buy a custom task here: http://pragmaticworks.com/community/files/folders/ssiscomponents/entry33.aspx
June 20th, 2008 9:23pm

Here is an example of using file dates in SSIS: http://microsoft-ssis.blogspot.com/2011/01/use-filedates-in-ssis.html Please mark the post as answered if it answers your question | My SSIS Blog: http://microsoft-ssis.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
March 13th, 2011 6:13pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics