简体   繁体   English

如何修复导致程序包在生产中失败的连接管理器错误?

[英]How do I fix connection manager error that causes the package to fail in production?

I have created an SSIS package and it works great on my dev machine. 我已经创建了一个SSIS程序包,它在我的开发机上运行良好。 But, when I try to run it on the production server, it errors out on me. 但是,当我尝试在生产服务器上运行它时,它就错了。

Here is the error: 这是错误:

Error: The AcquireConection method call to the connection manager 
"DestinationConnectionOLEDB" failed with error code 0xC0202009.

I have figured out the cause, but am not sure how to get it fixed. 我已经找到了原因,但是不确定如何解决。 The password isn't in the connection string. 密码不在连接字符串中。 But I have set the password in the SSIS project. 但是我已经在SSIS项目中设置了密码。 For some reason though, when I deploy and run this on the production server, it won't run since the password isn't part of the connection string. 但是由于某种原因,当我在生产服务器上部署并运行此服务器时,由于密码不是连接字符串的一部分,因此它将无法运行。

Is there some setting in the SSIS project that I need to change in order to get this to work right? 为了使此功能正常运行,SSIS项目中是否需要更改某些设置?

Thanks. 谢谢。

Disable the password by setting the ProtectionLevel in the package properties to DontSaveSensitive. 通过将包属性中的ProtectionLevel设置为DontSaveSensitive来禁用密码。

I also recommend moving the connection string to a package variable and make an expression on the connection. 我还建议将连接字符串移动到包变量中,并在连接上进行表达式。 Enable package configurations. 启用软件包配置。

Then you are free to change the connection and to use integrated security or not without changing the package. 然后,您可以自由更改连接并使用或不使用集成安全性,而无需更改软件包。 You can either put the connection string in the configuration or then provide it on the command line. 您可以将连接字符串放入配置中,然后在命令行上提供它。

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

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