I know SSIS automatically maps columns in source and destination if the names match. But is there a way to map a large number of columns in SSIS(Data Flow Task) when the source and destination column names are different, apart from doing it manually?
0
votes
2 Answers
1
votes
0
votes
You can change size of your column in source component by using query, for example use SUBSTRING(YourColumn,1,10) in order to change size of YourColumn in source component (you can check size of your output column in Source Component\Advanced Editor\Input and output Properties\Source Output\Output Columns\YourColumn
), also you can use Derived Column
component in order to define new column with new size.
EDIT: You can only map source column and destination column with some data type and some size (the name of source and destination column not important to mapping). If you map two column with different size, SSIS raise a warning, and raise error when convert started, and have a data in source that have size more that destination column.