I have such a csv file, field separator ,. My csv files are very large and I need to import them into a SQL Server table. The process must be automated, and this is not one time.
Therefore, I use Bulk Insert to insert such csv files. But today I got csvfile which has such a line
1,12312312,HOME ,"House, Gregory",P,NULL,NULL,NULL,NULL
The problem is that Bulk Insert creates this line, especially this field is "House, Gregory" as two fields are one "House" and the second "Gregory".
Is there a way to make Bulk Insert understandable that double quotes override comma behavior? When I open this csv using Excel, it usually sees this field as "House, Gregory"
source
share