代码之家  ›  专栏  ›  技术社区  ›  pramodtech

ssis脚本任务将脚本预编译为二进制代码,设置为false

  •  0
  • pramodtech  · 技术社区  · 15 年前

    如果我将预编译脚本设置为二进制代码为true,我会得到一个错误消息:“任务被配置为预编译脚本,但找不到二进制代码。” 如果我将此属性设置为false,那么它就会工作。在生产服务器上部署包后会出现问题吗? 请给出建议。

    4 回复  |  直到 11 年前
        1
  •  1
  •   grapefruitmoon    15 年前

    如果您以64位运行生产,则需要预编译二进制代码,是这样吗?不过,听起来您的脚本代码中有语法错误,您能在这里发布它吗?这样我们就可以看到问题可能是什么?

        2
  •  0
  •   Santiago Cepas    15 年前

    如果不需要部署到64位机器上,就不应该有任何问题。从 MSDN :

    如果预编译脚本,它将 启动更快,脚本可以 在64位环境中运行。然而, 包装尺寸较大 包含预编译脚本。 此外,编译脚本不能 调试

    这是Microsoft确认的一个问题(在SQL Server 2005中),您可以找到一个修复方法 here

        3
  •  0
  •   Andrew    12 年前

    只是通知我在我的SQL Server中尝试了这个更新,但它没有起作用。我必须将脚本任务属性中的预编译设置为关闭

        4
  •  0
  •   Steam    11 年前

    在我的简单C脚本任务中,我得到了错误-

    Package Validation Error
    
    Error at Send Mail: 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. Error at Send Mail: There were 
    errors during task validation.
    
     (Microsoft.DataTransformationServices.VsIntegration)
    

    在我的例子中,我只是使用一个简单的Try-Catch块来捕获简单代码中的异常。我添加了一个 using System.Exception; 在那之后我得到了错误。我刚刚意识到不需要这个导入,这是错误的原因。我不知道它为什么会导致SSIS出错。

    推荐文章