I am bulk inserting a CSV file into SQL server but after examining the result I realised an issue from the CSV file. The contents of the first name column in the CSV file are comma separated and hence are moved into the next column causing a domino effect.(e.g. Let’s say the column names are First Name, Number, and Address. The first Name column has a name called James, Bond. Due to the comma, it is moved to the Number comma and hence the supposed data for Number column is also shifted to the address column.
Does anyone have any ideas on how I can rectify this in SQL server.
I am bulk inserting a CSV file into SQL server but after examining the
Share
Hi after opening the raw data in notepad, my colleague and I discovered it had text identifiers and hence I basically just used a format file for the bulk insert. Thanx guys for the suggestions.