views:

458

answers:

6

I am getting the following error when my DTS package is scheduled:

Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER

I am not sure how to get my DTS packages to execute. They run fine when I manually execute them

I am running SQL Server 2005. DTS Packages were created using the Import/Export Wizard.

A: 

Most likely a permission issue, what user does the job run under and does that user have all the needed permissions?

SQLMenace
runs under sqlserveragent which has full permissions
Sheehan Alam
A: 

When a package is scheduled, it normally runs under the context and persmissions of the SQL Server Agent.

Does the package make a connection to a drive letter or other mechanism which is not available to the unattended sqlserver agent account?

Cade Roux
sqlserveragent was granted full permissions, but the error still occurs.
Sheehan Alam
A: 

I think the problem is with the login/password combination in any of the connections in the connection manager of the DTS, or some problem with the access to the server where the db is located.

El Cheicon
if it works manually, i would assume the login/password is correct. any thoughts?
Sheehan Alam
A: 

If your server name is over 31 characters long (including hostname), then it will not fire.

Paul Lawrence
servername is less than 31 chars
Sheehan Alam
+1  A: 

Have you checked the excellent KB article regarding security issues with Agent:

http://support.microsoft.com/default.aspx/kb/918760

It lists many possible causes, but most importantly - at the end KB describes how to troubleshoot this by enabling logging and getting detailed error information.

Michael
A: 

I changed authentication from SQL Server to Windows Auth and it did the trick. Not sure the technical reason why.

Sheehan Alam