procedure Tdatasetting.FlatButton1Click(Sender: TObject);
begin
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('backup database hrdb to disk = ' + ''''+FlatEdit1.Text+'''');
ADOQuery1.ExecSQL;
showmessage('数据以成功备份成功!');
datasetting.Close;
end;
procedure Tdatares.FlatButton1Click(Sender: TObject);
begin
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('restore database hrdb from disk = ' + ''''+FlatEdit1.Text+'''');
ADOQuery1.ExecSQL;
showmessage('数据以成功恢复成功!');
datares.Close;
end;
简单:)