Cannot bulk load because the file could not be opened. Operating System Error Code 3

后端 未结 7 906
萌比男神i
萌比男神i 2021-02-01 13:38

I\'m trying to set up a Stored Procedure as a SQL Server Agent Job and it\'s giving me the following error,

Cannot bulk load because the file \"P:\\file.csv\" could no

7条回答
  •  名媛妹妹
    2021-02-01 14:08

    I dont know if you solved this issue, but i had same issue, if the instance is local you must check the permission to access the file, but if you are accessing from your computer to a server (remote access) you have to specify the path in the server, so that means to include the file in a server directory, that solved my case

    example:

    BULK INSERT Table
    FROM 'C:\bulk\usuarios_prueba.csv' -- This is server path not local
    WITH 
      (
         FIELDTERMINATOR =',',
         ROWTERMINATOR ='\n'
      );
    

提交回复
热议问题