Need to read TimeStamp of XML file and based of TimeStamp date I need to pick this file using SSIS.
Hi, I have one Requirement, where I need to pick XML files from a Folder. But that Folder contains many XML files and I have to pick the files which TimeStamp date is same as system date. How I can do this through SSIS?Thanks Shiven:)
February 17th, 2011 6:58am

do you mean the Created Date of files? or a file name which contains TimeStamp as string in the name? if you mean second one provide a sample of file name herehttp://www.rad.pasfu.com
Free Windows Admin Tool Kit Click here and download it now
February 17th, 2011 7:09am

Do you mean the last modified date or file creation date? 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
February 17th, 2011 7:10am

I mean Created date of file or Modified date of file.Thanks Shiven:)
Free Windows Admin Tool Kit Click here and download it now
February 18th, 2011 12:20am

OK, ik think the url will help you... 1) Use a For Each Loop File enumerator to loop through all your files. 2) Add a script task (step 14 in the link) in that loop to get the file date of each file 3) Add your data flow behind that script and use an expression on the Precedence Constraint to check if the file had a correct date. Something like: DATEDIFF("dd", @[User::FileDate], @[System::StartTime] ) >= 1 Please mark the post as answered if it answers your question | My SSIS Blog: http://microsoft-ssis.blogspot.com
February 18th, 2011 12:24am

OK, ik think the url will help you... 1) Use a For Each Loop File enumerator to loop through all your files. 2) Add a script task (step 14 in the link) in that loop to get the file date of each file 3) Add your data flow behind that script and use an expression on the Precedence Constraint to check if the file had a correct date. Something like: DATEDIFF("dd", @[User::FileDate], @[System::StartTime] ) >= 1 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
February 18th, 2011 12:25am

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

Other recent topics Other recent topics