Autor Beitrag
dragon77
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 39



BeitragVerfasst: Mo 14.11.05 19:33 
Hallo,

ich möchte auf eine MySql DB zugreifen.
Leider bekomme ich immer den Fehler. Query was empty

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
{Verbindung zur Datenbank herstellen:}
DBMain.HostName := 'localhost';
DBMain.User := 'root';
DBMain.Password := '';
DBMain.Database := 'delphitest';
DBMain.Connected := true;


try
  zQuery.Active := True;
  zQuery.SQL.Text := 'Select * from log';
  zQuery.Open;
Finally
  DBMain.Connected := False;
end;

Woran kann es liegen?
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 14.11.05 19:48 
Tausche einmal die Zeilen 10 und 11 ^^

Erst mitteilen, was du willst, dann ausführen lassen :P

P.S.: Zeile 10 und 12 sind zueinander äquivalent ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.