DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER error

落爺英雄遲暮 提交于 2020-01-03 08:26:13

问题


My package consists of dynamic db connections. When i run my package it is throwing error like DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.The AcquireConnection method call to the connection manager "conn" failed with error code 0xC0202009.

I tried setting delay validation property to true at package level.

I tried to change Package Protection Level property to EncryptSensitiveWithpassword. Still am facing with same error.

Am able to run the package manually.

How to get rid of this.


回答1:


This can be solved in 2 ways

First, i have changed my delay validation property at package level to True from false.

Change ProtectionLevel to EncryptSensitiveWithUserKey.

Second, Remove the old connection mamanger and create new one.

Most of the time first way solves the problem.




回答2:


All my settings were right, but how strange it may sound, I had to close BIDS and reopen is before the error disappeared. Somehow BIDS' memory kept the file open.




回答3:


Convert the package to Package deployment model Please create a Package configuration file for the Connection String. Save the password here. When you deploy the package to a separate environment, copy the package along with the configuration file. Make sure the path in local and new environment is the same. This solved my problem




回答4:


I had this error keep reappearing because I forgot my connection string was created on the fly using variables and an expression (see image). Once I edited the connection string there then this error went away.




回答5:


I have added port number along with the DB name and added Provider as SQLNCLI11 in dts(config file) and added port number along with the IP address in the dtsx file(SSIS package) and it worked for me.



来源:https://stackoverflow.com/questions/10493189/dts-e-cannotacquireconnectionfromconnectionmanager-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!