Autor Beitrag
lkz633
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 136

WinXP, Suse Linux 8.2 (unter VMWare)
D7 Prof, K3 Prof
BeitragVerfasst: Fr 16.04.04 18:05 
Hallo,

ich versuche in eine csv Datei zu schreiben, die in einem ADO Dataset
geladen ist.

Ich erhalte folgende Fehlermeldung:

Die INSERT INTO-Anweisung enthält folgenden unbekannten Feldnamen:..............

into- Anweisung lautet: insert into [timetracker#csv] Values('1','systeme','xyz')

Kennt jemand das Problem und hat eine Loesung?

Gruss Max
atarigold
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 84

WIN XP, Linux 2.4
D7, Delphi 2006 Prof
BeitragVerfasst: Sa 17.04.04 13:20 
Wenn ich mich recht erinnere, erlaubt ADO Dataset nur Selects.
Versuchs mal mit ADOQuery.
Ansonsten fehlts an weiteren Infos:
Hat die csv-Datei nur aus 3 Spalten ?
Welches Trennzeichen ?

Gruß
lkz633 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 136

WinXP, Suse Linux 8.2 (unter VMWare)
D7 Prof, K3 Prof
BeitragVerfasst: Sa 17.04.04 13:24 
Hallo,

habe es jetzt hinbekommen, wenn man im Connectionstring anstatt HDR=yes no nimmt, dann klappt es.

Falls jemand ne Loesung hat wie es auch mit der anderen Option geht, nur her damit.

Update scheint nicht unterstuetzt zu werden, falls doch, nur her damit :-)

Gruss lkz633
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Sa 17.04.04 15:05 
ein Insert verlangt Feldnamen (Spaltenbezeichner) und Values
also insert into [db] (Feldliste) values(Wertliste)

Wenn du keinen Header (Spaltentitel) hast, dann ist ja deine selbstgefundene Version [Header off] ok.
grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?
lkz633 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 136

WinXP, Suse Linux 8.2 (unter VMWare)
D7 Prof, K3 Prof
BeitragVerfasst: Sa 17.04.04 15:07 
Hallo,

habe es mit Headern versucht und dann

insert into [db] (x,y) Values('dsdsd','sds')

versucht.

Aber dies liefert den gleichen Fehler

Gruss lkz633