0

I've changed an SSIS package to use a 64-bit ODBC connection instead of 32-bit.

After deployment it works fine when executing the package manually but when running a SQL Server Agent job with the package it fails with:

An ODBC Error -1 has occurred

and

There was an error trying to establish an Open Database Connectivity (ODBC) connection with the database server

and

The AcquireConnection call to the connection manager Athena West-1 64-bit failed with error code 0xC0014009.

What is the reason for this error?

Christian
  • 7,433
  • 4
  • 36
  • 61

1 Answers1

0

If this is not the 32/64-bit issue then I would look to the permissions.

When you execute the package manually and it works is because you have the rigth permissions.

Maybe SQL Server Agent service credential doesn't have permission on the target database.

Right click on the Job > Properties > General > Owner, and change the Owner there. Setup your user if your user has access to the remote server and execute.

enter image description here

Also check on the remote server what users have permissions.

Just guessing.

Francesco Mantovani
  • 10,216
  • 13
  • 73
  • 113