I need to create a process in SSIS that does the following:
- Get all text files in a specific directory
- Sort those files in creation order (some files alter the same table, so I need the most recent file to have the last say in those records being inserted/updated)
- Process each file
- For each record on that text file I need to insert that record in an sql table or update that record if it already exists in the database
What is the best approach to do this?
I'm using SQLServer 2016
Help would be appreciated.