I am importing tables with a few columns of Varchar Datatype in DB2 . Inside SSIS 2012 Sql Import and Export Wizard converts all columns except a few correctly. There is a column of Type varchar(30) in Db2 but Import and Export Wizard is not able to recognize it . It used '22' in the Type column of MAPPING form . Please see the screen shot attached.
I tried to change the mapping file as suggested in other posts but still gets the same issue.
located inside C:\Program Files (x86)\Microsoft SQL Server\110\DTS\MappingFiles
I added
<!-- VARCHAR -->
<dtm:DataTypeMapping >
<dtm:SourceDataType>
<dtm:DataTypeName>22</dtm:DataTypeName>
</dtm:SourceDataType>
<dtm:DestinationDataType>
<dtm:CharacterStringType>
<dtm:DataTypeName>DT_STR</dtm:DataTypeName>
<dtm:UseSourceLength/>
</dtm:CharacterStringType>
</dtm:DestinationDataType>
</dtm:DataTypeMapping>
Tis still does not resolve issue. I have many tables to import and there are many varchar columns so manually changing all of them is a tedious.
Any suggestion ? Thanks in advance.
shuchi