主题:[讨论]备份
procedure TForm1.Button1Click(Sender: TObject);
var
path:string;
begin
if SaveDialog1.Execute then
path:= SaveDialog1.FileName;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add(format('backup database ni to disk="%s"',[path]));
ADOQuery1.ExecSQL;
ADOQuery1.Close;
end;
为什总出现有'c:\ming'错误?
(说明:我选了c盘保存ming.前面ADOQuery的connection已连了ADOConnection且连接字符串connectstring正确)
var
path:string;
begin
if SaveDialog1.Execute then
path:= SaveDialog1.FileName;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add(format('backup database ni to disk="%s"',[path]));
ADOQuery1.ExecSQL;
ADOQuery1.Close;
end;
为什总出现有'c:\ming'错误?
(说明:我选了c盘保存ming.前面ADOQuery的connection已连了ADOConnection且连接字符串connectstring正确)