Re: XML-Datei in Access
- From: "Elmar Boye" <ElmarB@xxxxxxx>
- Date: Wed, 14 Dec 2005 14:26:39 +0100
Hallo Thomas,
Thomas Wenning <nospam.mittsommernachtslauf@xxxxxx> schrieb ...
> ich möchte eine XML-Datei über ein Dataset in eine Access
> Datenbank importieren.
> Wie mache ich es möglichst performant und elegant?
Das hängt stark vom Aufbau der XML Datei als solches ab.
Einfachste Variante wäre, wenn das XML passt:
- Einlesen in ein DataSet via ReadXml
- Anschliessend OleDbCommandBuilder aufsetzen, der die
Daten in die Access Datenbank überträgt.
- Falls Du die Tabellenstruktur noch anlegen musst, so
müsstest Du Dir anhand der DataTable entsprechende
CREATE TABLE Befehle erzeugen.
Wenn allerdings bereits der erste Schritt daneben geht,
wirds schwieriger, da sich die Daten nicht direkt auf
ein relationales Schema abbilden lassen.
Gruss
Elmar
.
- Follow-Ups:
- Re: XML-Datei in Access
- From: Thomas Wenning
- Re: XML-Datei in Access
- References:
- XML-Datei in Access
- From: Thomas Wenning
- XML-Datei in Access
- Prev by Date: Re: Probleme mit DataSet-Erstellung u.a. in VS 2005
- Next by Date: Re: bindingsource und guid hinzufügen
- Previous by thread: XML-Datei in Access
- Next by thread: Re: XML-Datei in Access
- Index(es):
Relevant Pages
|