简体   繁体   中英

SSIS package executes fine from my machine, but failing as a SQL job

I have an SSIS package which uses C# script and 3rd party libraries to perform the required task. The package executes fine from visual studio, however when I try to run the same as SQL job, I see a successful completion, however the task the script is expected to perform is not happening (The 3rd party dll methods appears to be ignored).

The SQL job is run using service account and for Visual studio it is with my windows user credentials.

Is it a credentials issue for the service user or a firewall issue, any suggestions which can direct me to a way forward will be greatly appreciated. Thanks.

One time, I faced a similar issue while using Microsoft.Office.Interop.Word.dll assembly, after spending my time trying to resolve this issue, I some functionalities require a Windows user to run without any error.

Try to add a proxy account (run SQL job with the same credentials use to run manually) , you can follow one of these links for a step-by-step answer.

How do you load the reference to the 3rd party in your script? I guess you are experiencing dll loading issue while running your code as a SQL Job. Can you provide more details?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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