• Jonathan Marshall (8/27/2012)


    I have an inquiry based on how SSIS handles mappings for a certain number of columns that increase in time.

    A client has a file that started off with say 10 columns. The columns have increased over time to say 100 columns.

    The package is mapped so that it is mapped to the maximum amount of columns. If a file comes in with less then the 100 columns everything should work properply?

    Basically rows are being ingested incorrectly.

    Marshall

    Are the missing columns off the end of the file?

    IE

    Field1, Field2, Field3, Field4, Field5

    to

    Field1, Field2, Field3

    instead of

    Field1, Field3, Field5

    If it's the 2nd then you will have problems. The way the mapping will end up is Field1-> Field1, Field3->Field2, Field5->Field3. The only solution in that case I can think of is to create multiple connections for the file and branch depending on which version comes in. Or load the file into a single column table (varchar(max)) and parse from there.

    I'm not 100% certain what will happen in the first case but my guess is that it will work fine, leaving NULLs in the affected columns.

    Kenneth FisherI was once offered a wizards hat but it got in the way of my dunce cap.--------------------------------------------------------------------------------For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/[/url]Link to my Blog Post --> www.SQLStudies.com[/url]