SSIS job fails - Access denied to flat file

眉间皱痕 提交于 2020-01-15 03:07:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!