Hi guys,
Im brand brand new to SSIS, been working with it the past 3 days.
I need help with the following:
I have multiple text files that need to be imported into a table (oracle) along with the file names.
Table structure:
FileName string
Text CLOB
So far what i've done is for importing the text files is:
Set up Foreach Loop Container
Inside the foreach is my FlatFile Source + Ole DB Source. I have the 2 connection managers. -- This works lekker 100%, imports no probs.
FileName what i've done is added an expression (under collection) within the foreach -
Property = FileNameRetrieval, Value = User:
Filename.
I set up an Execute SQL task -> Insert into Table (FileName) Values = ?
This works as well, but adds it as a new line. Now what i need is for the filename to correspond with the text file info.
Basically this is how my table ends up:
FileName Text
Null Hello this is in the text file
Hello.txt Null
This has to be completely dynamic so i cant hardcode anything.
I hope i explained myself correctly
Any help would be appreciated
Im brand brand new to SSIS, been working with it the past 3 days.
I need help with the following:
I have multiple text files that need to be imported into a table (oracle) along with the file names.
Table structure:
FileName string
Text CLOB
So far what i've done is for importing the text files is:
Set up Foreach Loop Container
Inside the foreach is my FlatFile Source + Ole DB Source. I have the 2 connection managers. -- This works lekker 100%, imports no probs.
FileName what i've done is added an expression (under collection) within the foreach -
Property = FileNameRetrieval, Value = User:
I set up an Execute SQL task -> Insert into Table (FileName) Values = ?
This works as well, but adds it as a new line. Now what i need is for the filename to correspond with the text file info.
Basically this is how my table ends up:
FileName Text
Null Hello this is in the text file
Hello.txt Null
This has to be completely dynamic so i cant hardcode anything.
I hope i explained myself correctly
Any help would be appreciated