How to check SQL Agent Service account has access to the UNC directory
问题 I'm currently using this query to figure out if the SQL has permissions, EXEC master.dbo.xp_fileexist '\servername\sharename' But this query is running as the user I'm logged in as, Is there any way I can execute it as SQL Agent Service Account to check if that user has access? 回答1: To my knowledge, sql_agent runs under system\NetworkService account and it don't have access to UNC path (OR) other computers. You can change the account which runs sql_agent by going to control panel -> services