Working with CSV files in C#
Posted on 2011-10-12
I would like to import information from a CSV file into a SQL Server table. The issue that I am dealing with is I don't want to use all the fields in the CSV, only a few. I would like to pull columns with the following header names, namecol, addresscol, agecol. There are a total of 10 columns in the CSV file, but I only want to pull the 3 that I mentioned, so what exactly do I do to pull only the 3? I do not want to use the index parameter like , so what do I do?