help me!!(15分)

  • 主题发起人 jesse.zhou
  • 开始时间
J

jesse.zhou

Unregistered / Unconfirmed
GUEST, unregistred user!
database1.exclusive:=true;
database1.connection:=true;
if open.Execute then
begin
try
query1.Close;
query1.SQL.Clear;
query1.SQL.Add('restore database wulao from disk=:ss');
query1.Prepare;
query1.Params.ParamByName('ss').Value:=open.FileName;
query1.ExecSQL;
showmessage('數據還原完畢');
except
on E:exception do
begin
showmessage(e.message);
exit;
end;
end;
end;
錯誤提示:"Database in use,The system administrator must have exclusive use of the database to run the restore operation.
Backup or restore operation terminating abnormally."

 
請求各位幫忙??
 
顶部