SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Return files with dd_mm_yyyy
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MichelleMabbs
Starting Member

11 Posts

Posted - 03/28/2014 :  07:54:04  Show Profile  Reply with Quote
Hi there i have a package set up that moves xml files into an archive directory

the files look like the following
XXX_27_03_2014_Area_54
XXX_27_03_2014_Area_52
XXX_27_03_2014_Area_53
XXX_26_03_2014_Area_54
XXX_26_03_2014_Area_53
XXX_26_03_2014_Area_52


i can get all the files transfered over using a foreachloop & file system task

Now i want to return the files that matches yesterdays date only

I know that i need a varibale to return only the files with the correct date in, however i cant seem to work it out

any help will be gratefully recievd :)

Michelle

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 04/13/2014 :  15:04:04  Show Profile  Reply with Quote
use script task to check pattern for date value inside filename
see
http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000