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 TrivediPosted Nov 2, 2015, 11:35 PM
Basit KhanPosted Nov 3, 2015, 12:09 AM
Jignesh TrivediPosted Nov 2, 2015, 11:40 PM
Hi,
Ok, can you please share your csv data and table definition?
Basit KhanPosted Nov 2, 2015, 11:37 PM
Raja TPosted Nov 2, 2015, 11:22 PM