This is my SQL query for bulk insert
BULK
INSERT userTable
FROM 'c:\name\userTable.txt'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
GO
It results in the following error
sql Cannot bulk load because the file “C:\name\userTable.txt”
could not be opened. Operating system error code 3(The system cannot
find the path specified.)
What is your setup? TWO possibilities:
Bulk insert is not a network transfer, it i a command to the server to load a file, which then is executed FROM the server process ON the server machine WITH the credentials the server process runs on.
So, can the server, with the server user, read this parth on the server and find the file?
Obvious answer: NO. Pleae check and invest more than 10 seconds thinking about the problem – the error message hier is very specific.