I am trying to insert a CSV file in SQL Server 2008 R2.
. CSV is 300 + MB from http://ipinfodb.com/ip_database.php Complete (City), 4.0M records.
Here are the first 5 rows, with 1st row = column headers:
"ip_start";"country_code";"country_name";"region_code";"region_name";"city";"zipcode";"latitude";"longitude";"metrocode"
"0";"RD";"Reserved";;;;;"0";"0";
"16777216";"AU";"Australia";;;;;"-27";"133";
"17367040";"MY";"Malaysia";;;;;"2.5";"112.5";
"17435136";"AU";"Australia";;;;;"-27";"133";
I tried to import and export data and BULK INSERT, but still could not import it correctly.
Resort to using bcp? can it handle the deletion ""? as?
Many thanks.
Henry source
share