I have to import a csv file to excel or directly to SQL Server database.
Here is the data format
- columns are separated by comma (,).
- Strings are enclosed between ~ and ~ which may contain comma (,)
- When I try to import into excel by using delimiter Comma(,) it creates extra columns where ModelName contain comma in it.
Here is CSV file some lines, check the last item "~Express, Commercial Cutaway~" it contains comma in it.
~ChromeStyleID~,~Country~,~Year~,~DivisionName~,~SubdivisionName~,~ModelName~ 349645,~US~,2013,~GMC~,~GMC Pickups~,~Sierra 2500HD~
349646,~US~,2013,~GMC~,~GMC Pickups~,~Sierra 2500HD~
349649,~US~,2013,~Chevrolet~,~Chevy Specialty Vehicles~,~Express, Commercial Cutaway~
So how to import it into sql or excel.