问题
I have created an SSIS package that reads a csv file from a network shared drive and imports the data into our table. The package works fine in the Visual studio. I imported the package to Integration Services Catalog and when I execute the package, it gives access denied to flat file error. What is required to run the package from Sql server, I created a job to run this package nightly and assigned a proxy for the job. Not sure what permissions I am missing, any help please
回答1:
When SSIS packages are executed from SQL Server they access File System using the SQL Server Service Account NT SERVICE\MSSQL$<Instance Name>
(Where <Instance Name>
should be replaced by the installed instance name).
Try running using a proxy account that has read/write permissions. Also, the service account must have these permissions on the data sources:
SQL Server Serivce account Permissions:
- Configure File System Permissions for Database Engine Access
Setting proxy account:
- Running a SSIS Package from SQL Server Agent Using a Proxy Account
- Create a SQL Server Agent Proxy
来源:https://stackoverflow.com/questions/58328263/ssis-job-fails-access-denied-to-flat-file