消息 4861,级别 16,状态 1,第 1 行,无法打开。操作系统错误代码3(系统找不到指定的路径。)

Msg 4861, Level 16, State 1, Line 1, could not be opened. Operating system error code 3(The system cannot find the path specified.)

我在批量插入时遇到问题,请任何人帮助我

Msg 4861, Level 16, State 1, Line 1
Cannot bulk load because the file "D:\BESTTA 7200518_DLLD_3C.txt" could not be opened. Operating system error code 3 (The system cannot find the path specified)

这是我的SQL声明:

BULK INSERT LLD2017_26032020.dbo.TRX_TRANSAKSI_3C
FROM 'D:\BESTTA 7200518_DLLD_3C.txt' --location with filename
WITH
(
    FIRSTROW = 2,
    FIELDTERMINATOR = '|',
    ROWTERMINATOR = '\n'
)
GO

SELECT *
FROM TRX_TRANSAKSI_3C ttt 
WHERE jenis_rekening = '3C' 
  AND ttt.TGL_TRANSAKSI = '20200518'

意思是,SQL服务器找不到路径。 SQL 服务器计算机中是否有此文件?如果您在本地服务器中有此内容,而 运行 来自 SSMS 客户端,SQL 服务器将不会在您的本地计算机中检查此内容。

'D:\BESTTA 7200518_DLLD_3C.txt' --location with filename

以上路径应该存在于SQL服务器服务器机器,本地文件夹 NOT 在您的 本地计算机中,本地文件夹