dbTalk Databases Forums  

SSIS Package error "DTS_E_SQLTASK_FAILEDTOACQUIRECONNECTION"

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss SSIS Package error "DTS_E_SQLTASK_FAILEDTOACQUIRECONNECTION" in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Elvis Tang
 
Posts: n/a

Default SSIS Package error "DTS_E_SQLTASK_FAILEDTOACQUIRECONNECTION" - 08-14-2006 , 10:49 PM






I build a simple SSIS package. There are only one connection "Remote
DB" and one SQL task.
the connection's string is such like "Data Source=RemoteSvr;User
ID=sa;Initial Catalog=demo;Provider=SQLNCLI.1;Persist Security
Info=True;", where RemoteSvr is a machine different from the machine
the package deployed. The SQL task will aquire the connection to create
a test table.
I succeeded in Management Studio, but failed in a simple web site which
running the package. The error is "Failed to acquire connection "Remote
DB". Connection may not be configured correctly or you may not have the
right permissions on this connection."

Could anyone explain why I got such problem?
Another question is why I can not save the password in the connection
string? how can I do that?


Reply With Quote
  #2  
Old   
Jorge Aguilar
 
Posts: n/a

Default Re: SSIS Package error "DTS_E_SQLTASK_FAILEDTOACQUIRECONNECTION" - 08-15-2006 , 10:46 AM






That is actually the error, the password is not saved when you deploy the
package and use from asp.net. There are alot of consderations so let's
start:

The only way to be able to save the a password and for the package to
actually read it is using a configuration file, the problem would be that
the pwd will not be encrypted if that works for you, then your are done!.
Another way is to use integrated security for your connecion and that means
that you need provide access to your asp.net user to de DB and if the
package was deploy to SQL to the package itself, if deploy to Filesystem
then to the directory.

All is realted with the ProtectionLevel property of the package. Here are
all the links I used to learn about it:

http://groups.google.com/group/micro...8629239a69381f
(explain)
http://groups.google.com/group/micro...29241b027467e0
(explain)
http://groups.google.com/group/micro...82d519d4be6cc5
(solutions)
http://forums.microsoft.com/MSDN/Sho...94092&SiteID=1
(solutions)

http://msdn2.microsoft.com/en-us/library/ms198485.aspx (about making
configurations files for packages)

One thing that might be worthy to consider is that you can not share
configurations files among packages (AFAIK), so if you have the same
connection in all your packges your'll need to modify it in all the config
files.

I hope this helps
George.



"Elvis Tang" <headsea2005 (AT) gmail (DOT) com> wrote

Quote:
I build a simple SSIS package. There are only one connection "Remote
DB" and one SQL task.
the connection's string is such like "Data Source=RemoteSvr;User
ID=sa;Initial Catalog=demo;Provider=SQLNCLI.1;Persist Security
Info=True;", where RemoteSvr is a machine different from the machine
the package deployed. The SQL task will aquire the connection to create
a test table.
I succeeded in Management Studio, but failed in a simple web site which
running the package. The error is "Failed to acquire connection "Remote
DB". Connection may not be configured correctly or you may not have the
right permissions on this connection."

Could anyone explain why I got such problem?
Another question is why I can not save the password in the connection
string? how can I do that?




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.