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

Advertisements

Author:

#EnthusiasticTechnologist #Developer #SeniorConsultant #DataLover #DataMigrationSpecialist #DynamicsCRMSpecialist #Challenger #Fitness-freak #Blogger #TechnicalTrainer #TechnologyLover

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s