恢复
statusbar1.Panels[1].Text:='正在恢复中....';
isstart:=true;
try
with adoquery1 do
begin
close;
sql.Clear;
sql.Add('use master restore database shichangbu from disk='''+trim(edtFilename.text)+''' with replace');
waitfrm.LabelText.Caption:='正在恢复数据库,所需时间视数据库大小而定!';
WaitFrm.Show;
screen.Cursor:=crHourGlass;
application.ProcessMessages;
execsql;
//application.ProcessMessages;
screen.Cursor:=crdefault;
waitfrm.Close;
end;//with do