在 SSIS 中创建脚本任务后出现错误:
Validation error. Script Task : The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.
错误已修复(只需要成功构建脚本)并且与问题无关。
在我在 StackOverflow 上寻找答案的过程中,我发现了很多关于这种“预编译”设置的讨论,但是在单击 SSIS 中的几乎所有内容后,我只是找不到它,因此提出了这个问题。
我怀疑它在以后的版本中被删除了,但无法证明。如果您碰巧知道答案,请告诉我。
最佳答案
我设法找到了答案:
Configuring the Script Component in the Script Component Editor
In SQL Server 2008 Integration Services (SSIS) and later versions, all scripts are precompiled. In previous versions, you specified whether scripts were precompiled by setting a Precompile property for the task.
我希望有一种更简单的方法来定位 SQL 版本之间的功能差异。
更新 - 感谢@billinkc,我已经确定了记录更改的部分:
Script Task
Unlike earlier versions where you could indicate whether the scripts were precompiled, all scripts are precompiled in SQL Server 2008 Integration Services (SSIS). When a script is precompiled, the language engine is not loaded at run time and the package runs more quickly. However, precompiled binary files consume significant disk space.
关于sql-server-2008 - 在哪里可以找到 SQL Server 2008 中脚本任务的 SSIS 预编译属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16329138/