简体   繁体   English

更改SQL列的数据类型时更新SSIS包

[英]Updating SSIS Package when datatype for SQL column is changed

We have to update the datatype for a column in SQL table which is used a source in a SSIS package. 我们必须更新SQL表中的一列的数据类型,该表在SSIS包中用作源。 But when I run the SSIS package after updating the data type it fails due to datatype mismatch. 但是,当我在更新数据类型后运行SSIS包时,由于数据类型不匹配而失败。

How can I have SSIS package recompile/revalidate the sourcecode so it doesn't fail? 如何让SSIS包重新编译/重新验证源代码,以确保它不会失败?

You will need to open the SSIS package itself. 您将需要打开SSIS包本身。 From this point, go to any component that uses this object, right-click this and select Show Advanced Editor... then press the Refresh button on the Connection Manager pane to update the metadata. 从这一点开始,转到使用该对象的任何组件,右键单击它并选择Show Advanced Editor ...,然后按Connection Manager窗格上的Refresh按钮以更新元数据。 I'd also recommend double-checking any column mappings to verify that the data types and lengths are compatible. 我还建议您仔细检查所有列映射,以验证数据类型和长度是否兼容。

You can open the existing package and run a data conversion or simply create a new one and overwrite the existing one with the conversion. 您可以打开现有程序包并进行数据转换,也可以简单地创建一个新程序包并用该转换程序覆盖现有程序包。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM