title: Cannot bulk load because the file could not be opened. Operating System Error Code 5
body: <p>I'm trying to insert an image into SQL Server using this SQL query </p>
  
  <pre><code>INSERT INTO dbo.Employees(ImageColumn) 
     SELECT BulkColumn 
     FROM OPENROWSET(BULK 'C:\Users\ahmed\Desktop\employee.jpg', Single_Blob) AS img
  </code></pre>
  
  <p>but I'm getting this message:</p>
  
  <blockquote>
    <p>Msg 4861, Level 16, State 1, Line 3<br>
    Cannot bulk load because the file "C:\Users\ahmed\Desktop\employee.jpg" could not be opened. Operating system error code 5 (Access is denied.).</p>
  </blockquote>