guest2013-1
guest
- Joined
- Aug 22, 2003
- Messages
- 19,800
- Reaction score
- 13
Hey guys, been delving into SSIS for a bit now, and there's an interesting problem I've come across.
I have a folder that CSV's get dumped in. 4 files daily.
1 Header that contains a summary of what is exported, 1 Detail file (that the header explained)
4 files in total, the first 2 (header/detail) contains a summary of the day (contains total time/who did it etc) and the other 2 files (header/detail) contains the detail of that day (a break down of what makes the "total time" in the other file)
These 4 files get dumped in the same directory, and the naming convention isn't distinctive enough to say "hey you, you go there!"
What I do have is the header files "explaining" which file contains what.
What I want to do now is have my SSIS project import these files based on what 1 column contains or not. Because in the description of the file, it says it Ignores Sub-Points (which the other one doesn't ignore, creating the whole Summary/Detail thing) and then send them to the appropriate tables.
The problem is, the previous programmer did a simple "skip 1 if processing the first 1" type approach which is dumping to the incorrect tables in SQL if there's more than 4 files. I've requested they try to dump each in a separate folder for me so I can know definitively that THIS one GOES THERE
But in the meantime (while I wait for business to make up their mind) I'd like to know if what I want to do is possible and HOW

I have a folder that CSV's get dumped in. 4 files daily.
1 Header that contains a summary of what is exported, 1 Detail file (that the header explained)
4 files in total, the first 2 (header/detail) contains a summary of the day (contains total time/who did it etc) and the other 2 files (header/detail) contains the detail of that day (a break down of what makes the "total time" in the other file)
These 4 files get dumped in the same directory, and the naming convention isn't distinctive enough to say "hey you, you go there!"
What I do have is the header files "explaining" which file contains what.
What I want to do now is have my SSIS project import these files based on what 1 column contains or not. Because in the description of the file, it says it Ignores Sub-Points (which the other one doesn't ignore, creating the whole Summary/Detail thing) and then send them to the appropriate tables.
The problem is, the previous programmer did a simple "skip 1 if processing the first 1" type approach which is dumping to the incorrect tables in SQL if there's more than 4 files. I've requested they try to dump each in a separate folder for me so I can know definitively that THIS one GOES THERE
But in the meantime (while I wait for business to make up their mind) I'd like to know if what I want to do is possible and HOW