I am trying to bulk insert the first row of a csv file into a single column table. But in the beginning I get extra characters ("n ++"):
n++First Column;Second Column;Third Column;Fourth Column;Fifth Columnm;Sixth Column
The contents of the CSV file are as follows:
First Column;Second Column;Third Column;Fourth Column;Fifth Columnm;Sixth Column
You can find the test.csv file here
And this is the code that I use to get the data of the first row in the table
declare @importSQL nvarchar(2000) declare @tempstr varchar(max) declare @path varchar(100) SET @path = 'D:\test.csv' CREATE TABLE
Any idea where this extra "n ++" comes from?
source share