Autor Beitrag
mettie84
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 21

Win2k, XP SP2, Linux 9.0
D5 standart, D6 Ent, D7 Ent
BeitragVerfasst: So 24.10.04 18:54 
Hilfe. Habe folgendes Problem:

ausblenden Delphi-Quelltext
1:
2:
3:
TMP_SQL := 'REVOKE ALL PRIVILEGES FROM ''%s''@''%%''';  
TMP_SQL := Format(TMP_SQL, [edtUser.Text]);  //edtUser.Text := 'Test2'
DBChanges(SQLConnection, TMP_SQL);  //Übergabe an einen ZQuery


Dabei tritt folgender Fehler auf:

...to use near FROM 'Test2'@'%'' at line 1...

Kann jemand den Fehler in meiner SQL-Anweisung sehen. Ich scheine blind zu sein.

MfG Matthias

_________________
Wenn das 0:2 schon gefallen ist, dann ist ein 1:1 nicht mehr möglich
mettie84 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 21

Win2k, XP SP2, Linux 9.0
D5 standart, D6 Ent, D7 Ent
BeitragVerfasst: Mo 25.10.04 09:23 
So nach dem ich mir die komplette Nacht beim Fehlersuchen um die Ohren geschlagen habe, will ich euch nicht dumm sterben lassen. Hier ist die Lösung.:

ausblenden Delphi-Quelltext
1:
2:
3:
TMP_SQL := 'REVOKE ALL PRIVILEGES ON rma.* FROM ''%s''@''%%''';
TMP_SQL := Format(TMP_SQL, [edtUser.Text]);
DBChanges(SQLConnection, TMP_SQL);



Danke für die schnelle Hilfe 8)

_________________
Wenn das 0:2 schon gefallen ist, dann ist ein 1:1 nicht mehr möglich
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Mo 25.10.04 09:42 
thema als gelöst markieren! ;>