Autor Beitrag
Bumpy Johnson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Mo 14.04.03 11:27 
Hallo,

Also ich versuche in ein Paradox- DB Daten zu speichern mit SQL- Befehlen. Aber ich bekomme auf einmal eine Felhlermeldung die so aussieht:
! '[Microsoft][ODBC Paradox Driver] Operation muss eine aktualisierbare Abfrage verwenden' !

Ich kann mir dieser Fehlermeldung gar nicht anfangen!
Mein Sql-Befehl sieht so aus
INSERT INTO NAME (NAME, ALTER, STRASSE) VALUES (:Nam, :Age, :str)

Kann mir da wer helfen ?

_________________
-Bumpy Johnson
rest in Peace
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Mo 14.04.03 12:02 
Hi
Bumpy Johnson hat folgendes geschrieben:
Ich kann mir dieser Fehlermeldung gar nicht anfangen!
Mein Sql-Befehl sieht so aus
INSERT INTO NAME (NAME, ALTER, STRASSE) VALUES (:Nam, :Age, :str)

Und wie setzt du diesen Befehl an die Datenbank ab? Verwendest du TQuery? Wenn ja, vermute ich mal dass du einfach Active = True gesetzt hast. Statements die keine Datenmenge liefern müssen mit .ExecSQL ausgeführt werden.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
Bumpy Johnson Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Di 15.04.03 14:09 
Zitat:
Statements die keine Datenmenge liefern müssen mit .ExecSQL ausgeführt werden.


Ich hatte da Mit TAdo_Query gemacht und mit ExecSQl! Da bekamme ich die Fehlermeldung. Danach habe ich es mit TQuery versucht:
aber und bekam ich diese Meldung:

Ungültiges Schlüsselwort
Symbol-String: Alter,
Zeilennummer: 1


Meine Tabelle heisst außerdem name.db
und hat die Felder: Name, Alter, Strasse

Häh?

_________________
-Bumpy Johnson
rest in Peace
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Di 15.04.03 14:14 
Arrgh :autsch: Warum übersieht man sowas immer. ALTER ist ein reserviertes SQL-Befehlswort. Also versuchs mal mit:
ausblenden Quelltext
1:
INSERT INTO NAME ("NAME", "ALTER", "STRASSE") VALUES (:Nam, :Age, :str)					


Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
Bumpy Johnson Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Di 15.04.03 14:20 
Wenn ich den SQl-Befehl so umschreibe
Dann gibt es mit diese Fehlermeldung:

Ungültiges Schlüsselwort
Symbol-String: ,
...

_________________
-Bumpy Johnson
rest in Peace
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: Di 15.04.03 23:05 
Hi,

das Problem hatte ich auch schon und musste ewig suchen.

Die Loesung:

erzeuge einfach einen Primaerindex fuer die Pardox Datenbank, und schon klappt ales :-)

Gruss lkz633
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Mi 16.04.03 07:06 
Hi
lkz633 hat folgendes geschrieben:
erzeuge einfach einen Primaerindex fuer die Pardox Datenbank, und schon klappt ales :-)

Wie schafft man des denn eine Paradox-Tabelle ohne Primärindex zu erstellen?? :shock:

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Do 17.04.03 02:53 
hi lcs!

einfach keinen primärindex definieren und schon hast eine indexlose tabelle ;)

mfg, stefan
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Do 17.04.03 07:22 
Hi grayfox
Ja, ich geb mich geschlagen :mrgreen: Der DB Desktop lässt das tatsächlich zu. Was für ein Irrsinn user defined image

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...