Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extracting relational data from flat file CSV
Message
De
29/09/2010 19:13:49
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Titre:
Extracting relational data from flat file CSV
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Database:
MS SQL Server
Divers
Thread ID:
01483281
Message ID:
01483281
Vues:
94
Looking for ideas about doing a one-time data extraction from a CSV (which was generated from Adobe PDFs)

The data represents an insurance policy. 30% of the columns - which have column headers that correspond to field names - represent columns that will be imported into the policy table. The remainder of the columns are a flat representation of child tables.

prop1, prop2, prop3, prop4 should be extracted to four rows of the prop table ( as well as the key representing the policy, of course )

ai1, ai2, ai3 etc ditto.

One-time conversion to sql server database. Any suggestions on the best way to iterate the 500 or so rows of the CSV to create 500 policy records and their associated child data.

TIA


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform