hi
can myDAC do something like check, repair, optimize and so on. Like in mysql front there is fasility to do that? i want to do with one botton in my app. it' to be like this :
1. i want to make list of the tables from database (in listbox)
2. i click the tables name in the list box.
3. there're an option in group box . like repair, check, optimize and soon
4. i hit the button to do those option and display the status in listbox to. like
table a reair...OK
table c reair...OK
table b reair...OK
etc
thank's
how to make check table with myDAC
thank's for your replay
i can do with TMyServerControl but can u give me some example how to display the status of the table that i chose to analyze, check, optimize or repair like
table a optimize....ok
table b optimize....ok
etc..
nb: if u wish send to my email [email protected]
thank's
yudi
i can do with TMyServerControl but can u give me some example how to display the status of the table that i chose to analyze, check, optimize or repair like
table a optimize....ok
table b optimize....ok
etc..
nb: if u wish send to my email [email protected]
thank's
yudi
TMyServerControl is a TDataSet descendant. It returns the result of the operation as a record set. The following code displays the result of the operation:
Code: Select all
Memo.Lines.Clear;
MyServerControl.TableNames := 'emp;dept';
MyServerControl.AnalyzeTable;
while not MyServerControl.Eof do begin
Memo.Lines.Add('Table ' + MyServerControl.FieldByName('Table').AsString + ' ' +
MyServerControl.FieldByName('Op').AsString + '...' +
MyServerControl.FieldByName('Msg_text').AsString);
MyServerControl.Next;
end;sorry for asking again. when i compile i get an error [Error] tableService.pas(40): Undeclared identifier: 'FieldByName'. then i check the MyServerControl doesn't have property FieldByName. how to solve this? sorry because i'm new in delphi. please give me more explaination.Memo.Lines.Add('Table ' + MyServerControl.FieldByName('Table').AsString + ' ' +
MyServerControl.FieldByName('Op').AsString + '...' +
MyServerControl.FieldByName('Msg_text').AsString);
thank's
yudi