SS Agent loses permissions on fileshare.

chrisrdba 361 Reputation points

Greetings. I've got a few SSIS Packages that are run via job and do things with a file that exists on a fileshare. They can run for weeks without issue, then they'll suddenly blow up claiming they dont have perms and access is denied.

I can workaround this by simply restarting the SS Agent, and have done this workaround several times over the last few months.

Does anyone know of a real fix for this? Thanks!

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,914 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,309 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 32,326 Reputation points

    Sounds like some kind of memory leak or orphan processes that are not terminating.

    On the file server, run computer management and check for sessions and open files from the server that hosts SQL,


    On the SQL server, run process explorer.


    In the View menu set the lower pane view to show handles and the update speed to 10 seconds. Find the SS Agent process. Processes will be indented for parent/child. Does the SS Agent have multiple sub processes running? Search the lower pane and look for file handles referencing the file server.