I'm trying to import the CSV file values using bulk insert but I'm getting an error in my code.
Can anyone help me with this?
The following is the code I wrote:
SET NOCOUNT ON
BULK INSERT JBLOADER.dbo.FBNK_TELLER
FROM "\\Karthick\c\sql\FBNK_TELLER_4_0.csv"
WITH
(
CODEPAGE = 1251,
FIELDTERMINATOR = '?',
ROWTERMINATOR = '0x0a'
)
GO
SELECT CONVERT(varchar,@@ROWCOUNT) + ' rows affected'
GO
And I am getting an error:
Msg 4860, Level 16, State 1, Line 2
Cannot bulk load. The file "\Karthick\c\sql\FBNK_TELLER_4_0.csv" does not exist.
But I can access the path \\Karthick\c\sql\
from run mode & the file is there. Kindly note that server is installed on the same machine.
Can someone help me solve this?