SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Question about flat file source connection in DTS packages


Question about flat file source connection in DTS packages

Author
Message
Resender
Resender
Say Hey Kid
Say Hey Kid (699 reputation)Say Hey Kid (699 reputation)Say Hey Kid (699 reputation)Say Hey Kid (699 reputation)Say Hey Kid (699 reputation)Say Hey Kid (699 reputation)Say Hey Kid (699 reputation)Say Hey Kid (699 reputation)

Group: General Forum Members
Points: 699 Visits: 1564
Hello all,

So I've been tasked with doing a total conversion of the main bulk of dts packages that run at our clients warehouse systems to ssis. This is because A)all the databases are being switched over to sql server 2008 B)the software lisence on a previous system has run out

So yesterday I converted 7 packages which all follow the same logic,take a csv file and load it into the database.
However I can't tell from the DTS package itself whether the flat file source runs for a single file or if multiple are possible.

So can anyone tell me what is correct,I got a flat file connection that points to a folder can multiple files exist or is only 1 read
Koen Verbeeck
Koen Verbeeck
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27339 Visits: 13268
It will only read the flat file with the name configured in the flat file connection manager.
Since all files in a folder have unique names, you read only 1 file.

In order to read multiple files, you need to use a for each loop and set an expression on the flat file connection manager.

Looping over files with the Foreach Loop

There's also the multi flat file connection manager. I've never used it, but I've read some blogs who suggest to avoid it.


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search