Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Add missing columns or ignore additional columns in SSIS input file

$
0
0
I load SQL Server table with data coming from csv file in SSIS dtsx. My input file has 5 column header followed by 5column data rows. Sometimes the data rows are only 3 columns and sometimes 7 columns. Which is when SSIS pkg fails. I want to add 2 null columns when it is 3 columns (similar to adding ",," to csv file data row). And ignore 6 & 7 columns when more than 5 columns. How do I do this in data flow component script task?

Viewing all articles
Browse latest Browse all 24688

Trending Articles