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

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.

If you need any help on Dynamics project and training, reach out to me. Do connect with me on LinkedIn and follow this blog to know more about Dynamics and its related stuff. Once again, Happy to connect with you all through blogging. Do you share your valuable feedback?
%d bloggers like this: