Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Importing CSV with embedded commas
Message
De
29/05/2015 16:14:14
 
 
À
29/05/2015 13:14:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01620336
Message ID:
01620365
Vues:
46
>>The problem is that there is not a clear definition of what constitutes a new column value. I would suggest at the source either delimiting with a different character (perhaps TAB or pipe | symbol). I don't use commas as the separator as this has the problem you are now having.
>>
>>Another suggestion is to use an XML formatted file for the data.
>
>Up until a few months ago, they were sending us the files in SDF format. Life was happy. Then they changed the format, and did not tell us. The application was failing, but not reporting the failure. It was only when started getting reports that the information in our database was out-of-date, that we noticed that the format had changed.
>I have put in a request with my bosses to talk to the source about the file format.

Hi Greg

definitely press to change the delimiter. | is always useful. Very few people use that in text.
Also Naomis suggestion about trapping rows with too many columns.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform