Posted in Data Migration, SSIS

SSIS – {Package inserts Bit data type column ‘1’ as ‘-1’ and ‘0’ as ‘0’ in Int data type column}

Quick Tip:

This issue occurs while we moving data from Bit column (Source) to Integer column(Target). If we look the metadata of the columns in SSIS package, It shows DT_BOOL datatype.  Means that all the Bit type fields are considered as Boolean data type in package.

I have seen several solution from forums as Convert the source column into Int and change the data type in the output column properties. These type of change is not proper or not a better approach. Because maintenance perspective is tough. we can’t remember where we changed and what we changed.

Tip:  Best is to make the data type similar to source.

This tips shows that don’t think too much..

download

Author:

#enthusiastictechnologist #developer #consultant #freelancer #microsofttechnologies #dynamics365 #azure #datalover #datamigrationexpert #challenger #fitness-freak #blogger #technicaltrainer

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.