Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | 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
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MichelleMabbs
Starting Member

24 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
52326 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  
 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 1.01 seconds. Powered By: Snitz Forums 2000