Dear,
I'm inserting CSV data into SQL Server.
Below is the code.
BULK
INSERT AA_Temp
FROM 'D:\A\33.csv'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
GO
What my problem is my CSV file has a header, without having header is successfully inserted.
How to skip the first header, i tried above code but got error type mismatch beocz of getting first header row.
Thanks
Basit

Jignesh TrivediRank #16 · 50.3K reputationPosted Nov 2, 2015, 6:35 PM EST
Raja TRank #685 · 3.5K reputationPosted Nov 2, 2015, 6:22 PM EST
Basit KhanRank #4,768 · 326 reputationPosted Nov 2, 2015, 6:37 PM EST
Jignesh TrivediRank #16 · 50.3K reputationPosted Nov 2, 2015, 6:40 PM EST
Hi,
Ok, can you please share your csv data and table definition?
Basit KhanRank #4,768 · 326 reputationPosted Nov 2, 2015, 7:09 PM EST