Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSIS Dynamic Column Mapping Expand / Collapse
Author
Message
Posted Thursday, January 30, 2014 2:24 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 30, 2014 6:19 AM
Points: 3, Visits: 9
Hi,

I am a newbie to SSIS and have been tasked to move a 2000 dts package to ssis.

The issue is that i need to dynamically map columns with each file I load.

See each source file posts to the same destination table - but the column order in the source files is not the same.

Any pointers
Post #1536210
Posted Thursday, January 30, 2014 3:02 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 9:00 AM
Points: 13,520, Visits: 11,313
Are the amount of columns the same? Is the flat file delimited or fixed width?



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

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1536221
Posted Thursday, January 30, 2014 6:21 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 30, 2014 6:19 AM
Points: 3, Visits: 9
Its multiple file types with multiple delimiters and varying column orders.

The column order is stored in a separate table per file.
Post #1536289
Posted Friday, January 31, 2014 12:11 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 9:00 AM
Points: 13,520, Visits: 11,313
Instead of making your life very difficult, I would make a seperate data flow for each type of flat file.



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

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1536651
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse