Hi Tayeb,
That sort of worked. It works for one record. But when I add a second record to the file, the first column of the second record ends up as null in the table.
So the the file contains:
'1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','52',
'1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','52',
And the table contains:
id_1,id_2,id_3,id_4,id_5,id_6,id_7,id_8,id_9,id_10,id_11,id_12,id_13,id_14,id_15,id_16,id_17,id_52
1,'2','3','4','5',6,'7','8','9',10,'11',12,13,14,15,'16','17',52
NULL,'2','3','4','5',6,'7','8','9',10,'11',12,13,14,15,'16','17',52
This was just a dummy example I created as I thought it narrowed down the problem. The real command I am running is:
load table FACTS_29_4d29401c_b16e_4914_adfd_2f5ca94bbe7b(id_1 null(ZEROS), id_2 null(ZEROS), id_3 null(ZEROS), id_4 null(ZEROS), id_5 null(ZEROS), id_6 null(ZEROS), id_7 null(ZEROS), id_8 null(ZEROS), id_9 null(ZEROS), id_10 null(ZEROS), id_11 null(ZEROS), id_12 null(ZEROS), id_13 null(ZEROS), id_14 null(ZEROS), id_15 null(ZEROS), id_16 null(ZEROS), id_17 null(ZEROS)) from 'C:\\SVID2108034087875431268.csv' skip 1 strip off delimited by ',' row delimited by '\n' quotes on escapes off format bcp defaults on
And the CSV file I am attempting to load attached (SVID2669529579482539795.txt)
The real command has the "format bcp" set, so there should be no need for a delimiter at the end of each line in the CSV right? But I am still getting the error I reported above i.e. "Non-space text found after ending quote character for an enclosed field"
Any ideas?
Máirtín