troubleshooting Question

SSIS and Multiple files

Avatar of cjJosephj
cjJosephj asked on
Microsoft SQL Server 2005
20 Comments1 Solution254 ViewsLast Modified:
Hi,

I have a package that needs to move multiple files from a folder. I know how to loop through the folder and load the files into a database. The problem I have is in the folder I have files that need to be moved together and updated the database and then loop through and get the next group of files that are linked.

e.g
Files in folder

file-Test-20100429-test1.txt ---goes into table1
file-Test-20100429-test2.ext2---goes into table2
file-Test-20100429-test3.ext3---goes into table3


file-Test-20100430-test1.txt---goes into table1
file-Test-20100430-test2.ext2---goes into table2
file-Test-20100430-test3.ext3---goes into table3


file-Test-20100431-test1.txt---goes into table1
file-Test-20100431-test2.ext2---goes into table2
file-Test-20100431-test3.ext3---goes into table3


so basically I need to loop through pick up all the files that have the same date e.g 20100429 and put them into my table then do all my updates then go back to the next group Of files 20100430 etc

Many thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 20 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 20 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros