I have been struggling to import my .xlsx
file for a while now and cant seem to figure out what is happening. I follow all the steps I find in other SO posts, and other tutorials.
I have a simple .xlsx
file for now:
This is the code i run to grab the file and put it into a temp table for now:
IF OBJECT_ID('tempdb..#Compare') IS NOT NULL
DROP TABLE #Compare;
CREATE TABLE #Compare
(
Name VARCHAR(MAX)
,Lastname VARCHAR(MAX)
);
BULK INSERT #Compare
FROM 'C:\Users\Michael\Documents\Taquanta\TAQKANBAN - 44 - 3pm Compare\compare.xlsx'
WITH
(
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '\n'
)
GO
SELECT * FROM #Compare c
And the results returned are not what i expected :(
The results:
Please could anyone let me know where I am going wrong?