Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

is there a way to skip or ignore unwanted files? Expand / Collapse
Author
Message
Posted Monday, April 15, 2013 1:30 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, January 22, 2014 11:33 AM
Points: 15, Visits: 79
I want to skip or ignore those files that have a "unmatching" pattern in them (i.e, a_unmatched_b.xlsx, b_c_unmatched.xlsx, and so on). Is it possible to do this in SSIS?
Post #1442474
Posted Monday, April 15, 2013 2:53 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 4:45 AM
Points: 2,931, Visits: 2,951
kpann (4/15/2013)
I want to skip or ignore those files that have a "unmatching" pattern in them (i.e, a_unmatched_b.xlsx, b_c_unmatched.xlsx, and so on). Is it possible to do this in SSIS?



Hi
Yes it is possible.
I'd first match those with *unmatched* in the name and change their extensions to "xls" for example, and then filter out all other with extension "xlsx".

Regards
IgorMi




Igor Micev,
SQL Server developer at Seavus
www.seavus.com
Post #1442500
Posted Tuesday, April 16, 2013 9:55 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 2:46 AM
Points: 215, Visits: 861
If you are looping through a folder using a for each container you could use a script task to check for the substring and set an appropriate condition for whether to process or not in a connector if you didnt want to alter filenames.

'Only he who wanders finds new paths'
Post #1442827
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse