Change data types from Advanced Editor vs Data Conversion Transformation

自作多情 提交于 2019-12-06 08:20:21

Before showing the difference between both approaches, i will try to give an overview of the data conversion types.

Implicit vs Explicit conversion

There are 2 different type of data type conversion:

  • Implicit conversion: Implicit conversions are not visible to the user. SQL Server automatically converts the data from one data type to another. For example, when a smallint is compared to an int, the smallint is implicitly converted to int before the comparison proceeds.
  • Explicit conversion: Explicit conversions use the CAST or CONVERT functions or other tools.

From the following Microsoft Grid you can see what data types can be converted with each approach:

If you need to know what are the SSIS data types relevant to the data types of SQL Server database engine (mentioned in the Grid above), then you can refer to the following documentation:


Advanced Editor vs Data Conversion Transformation

  • When changing data types from the Advanced editor you are performing implicit data types conversion since the Source/Destination Component try to convert automatically the data type of the column.
  • Using Data Conversion Transformation you are performing explicit conversion. Since it is mentioned on the article above that:

Use the Data Conversion transformation to cast the data type of a column from one data type to a different data type


References

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!