Skip to main content
2 of 3
added 1 character in body
Edison
  • 151
  • 1
  • 6

(macOS/Docker) "Cannot bulk load. The file path does not exist or you don't have file access rights."

I am running SQL Server from a Docker container on macOS. All queries except for the loading of the csv file is getting executed. The column names etc are correct. Any ideas?

error:

Cannot bulk load. The file "/Users/me/snp500-company-by-sector.csv" does not exist or you don't have file access rights.

bulk insert CompanyBySector
from '/Users/me/snp500-company-by-sector.csv'
with
(   
    firstrow = 2,
    fieldterminator = ';',
    rowterminator = '\n',
    tablock
)
go
Edison
  • 151
  • 1
  • 6