简体   繁体   English

在SSIS上完美运行但在SQL上失败的软件包-服务器作业活动

[英]Package that runs perfect on SSIS, but fails on SQL - server job activity

I wonder if you can help me, I am having a problem which I can't figure out for the last few days... I get these errors when I run a package, that runs perfect on SSIS, on SQL - server job activity: 我想知道是否能为我提供帮助,但我遇到了一个问题,这几天来我都无法解决……当我运行一个在SSIS上,SQL上运行完美的程序包时,会出现这些错误-服务器作业活动:

Error: There were errors during task validation 错误:任务验证期间出现错误

Error: .. failed validation and returned error code 0xC0208449 错误:..验证失败并返回错误代码0xC0208449

Error: One or more component failed validation 错误:一个或多个组件验证失败

ADO NET source has failed to acquire the connection {...} with the following error message "exception from HRESULT: 0x80131937 ADO NET源未能获取带有以下错误消息“来自HRESULT的异常的连接{...}:0x80131937

Some additional info: 一些其他信息:

  • I am using project deployment mode 我正在使用项目部署模式

  • my Sql server version is 2014 我的Sql Server版本是2014

  • My protection level in SSIS is DontSaveSensitives both in project and packages, but I think that it doesn't matter when I deploy anyway. 我在SSIS中的保护级别是项目和包中的DontSaveSensitives ,但是我认为无论如何部署都没有关系。

  • The package I get this error about run on SSIS but not on SQL-server job activity 我收到有关在SSIS上运行但不在SQL服务器作业活动上运行的错误的软件包

When runnin within Sql Agent Job, your package is failing to acquire connections. 在Sql Agent Job中运行时,您的程序包无法获取连接。 First review your package/job connections, and make sure they have deployed properly. 首先查看您的包裹/工作连接,并确保它们已正确部署。

Then rule out access permissions issues by testing the package using a Sql Server user/password account. 然后通过使用Sql Server用户/密码帐户测试程序包来排除访问权限问题。 If it works this way then most likely you need to use a Sql Server Proxy account. 如果以这种方式工作,则很可能需要使用Sql Server代理帐户。

If you are still unable to access then check connectivity between the machine you are running the job and the one(s) where your data is located (addresses, ports and instances,..). 如果仍然无法访问,请检查正在运行作业的计算机与数据所在的计算机(地址,端口和实例等)之间的连接。 Also make sure that all involved machines can use the same transport (named pipe, tcp,...) in Sql Server Configuration Manager. 还要确保所有涉及的计算机在Sql Server配置管理器中都可以使用相同的传输方式(命名管道,tcp等)。

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

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