title: Cannot bulk load because the file could not be opened. Operating System Error Code 3
body: <p>I'm trying to set up a Stored Procedure as a SQL Server Agent Job and it's giving me the following error,  </p>
  
  <p>Cannot bulk load because the file "P:\file.csv" could not be opened. Operating system error code 3(failed to retrieve text for this error. Reason: 15105). [SQLSTATE 42000] (Error 4861)</p>
  
  <p>Funny thing is the Stored Procedure works just fine when I execute it manually.  </p>
  
  <p>The drive P: is a shared drive on Windows SQL Server from LINUX via Samba Share and it was set up by executing the following command,  </p>
  
  <p>EXEC xp_cmdshell 'net use P: "\lnxusanfsd01\Data" Password /user:username /Persistent:Yes'  </p>
  
  <p>Any help on this would be highly appreciated</p>