title: Giving permissions to a SQL Job to be able to access/modify folders and files on a different server
body: <p>I have a sql job on SERVER01.</p>
  
  <p>Part of the job is to access a folder located on a different server:</p>
  
  <p>\\SERVER02\Files</p>
  
  <p>I need to be able to create folders and files under it as well as modify/delete files.</p>
  
  <p>The \\SERVER02\Files folder is being shared with several different accounts.</p>
  
  <p>If I go to SERVER02 and try to UNC path to \\SERVER02\Files, it'll ask for a password.</p>
  
  <p>Since the servers are in two different domains, I need to specify the domain for the account:</p>
  
  <p>DOMAIN\accountName</p>
  
  <p>password</p>
  
  <p>Questions:</p>
  
  <p>What is the correct way for me to set this up so that the job will have access to the other server so it can manipulate the files at \\SERVER02\Files ?</p>
  
  <p>This is very confusing so I'm trying to get it right. Any help would be greatly appreciated.</p>
  
  <p>Thanks.</p>