SQL Server SSIS package unable to write csv file to shared location

xiozqbni  于 2023-04-28  发布在  其他
关注(0)|答案(2)|浏览(123)

SSIS Job was able to run and create CSV files to shared location until last week when it was executed from scheduled job. The ssis package reports success but does not write file to shared location. When I run the package manually from visual studio it works fine. Please help

eh57zj3b

eh57zj3b1#

Permissions to the file share seem to be your issue.

When running the package as a scheduled job from SQL Agent. It is executed under the context of the service account for the SQL Agent Service. So make sure the the sql agent account has the appropriate read/write access to the file share, and/or set the job to execute as a user with enough permissions.

nkcskrwz

nkcskrwz2#

You need to give Modify permissions to the file share for the SQL Server Agent account. Executing an SSIS package in Visual Studio is executing it under the context of your account (or the account that you are logged onto the server with if doing it from a server). But when you use SQL jobs to execute the ssis package, then it runs under the context of the service account that SQL Server Agent is running under.

相关问题