I'm trying to insert a CSV into a Temporary table and this SQL statement doesn't seem to work.
DECLARE @TempTable TABLE (FName nvarchar(max),SName nvarchar(max),
Email nvarchar(max));
BULK INSERT @TempTable
FROM 'C:\52BB30AD694A62A03E.csv'
WITH (FIELDTERMINATOR = ',',ROWTERMINATOR = '\n')
Getting the following error....
Incorrect syntax near '@TempTable'.
BULK INSERT
#tables
are different from@tables
, have a look at this question: What's the difference between a temp table and table variable in SQL Server?.