I have a temp table that has the same structure as a file text. But it doesn't seem to work. The error that it is displayed is
Cannot bulk load. The file "C:\Users\jacob_lasting\Desktop\MM.txt" does not exist
And the syntax that I used is this:
BULK INSERT tbltemp_SuccTable
FROM 'C:\Users\jacob_lasting\Desktop\MM.txt' --location with filename
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
GO
I read something that the file should be in SQL Server folder. Is that correct?