Autor Beitrag
rolandt4088
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122

WINDOWS XP
Delphi 7, CodeGear RAD Studio
BeitragVerfasst: Do 14.08.08 14:24 
Hallo,

kann ich prüfen, ob die Optimierung erfolgreich war?
Wenn ja, wie?

Gruß
Roland
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: Do 14.08.08 14:43 
Beim Optimize-Befehl bekommst Du ein Recordset zurück. In diesem einfach lesen, was er meint. Entweder steht Status OK oder "Already up-to-date" (o.ä.) als Status da; dann war es erfolgreich, ansonsten gab's nen Fehler...

Ansonsten kannst Du auch den Überhang auslesen und diesen vergleichen. Sollte nach dem Optimize im Idealfall 0 Bytes sein, oder aber zumindest wesentlich kleiner als vorher.

_________________
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.
rolandt4088 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122

WINDOWS XP
Delphi 7, CodeGear RAD Studio
BeitragVerfasst: Fr 15.08.08 14:31 
Wie kann ich denn den Überhang auslesen?

Ich arbeite mit ZQuery aus den ZComponenten.

Gruß
Roland
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: Fr 15.08.08 15:45 
Geht mit SHOW FULL TABLES; IIRC.

_________________
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.
rolandt4088 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122

WINDOWS XP
Delphi 7, CodeGear RAD Studio
BeitragVerfasst: Fr 15.08.08 16:29 
Ich habe den Befehl ausprobiert.

Es funktioniert;

Vielen Dank für die Hilfe.

Gruß
Roland