数据库怎样备份,用什么语句。最好能提示具体代码,小弟谢了

解决方案 »

  1.   

    不知道~这个问题还没遇到过?不过我问一下,你非要在delphi中进行数据库备份吗
    顺便帮你顶顶!
      

  2.   

    sqlserver:
    SQL.Clear; // ' + ExtractFilePath(paramstr(0)) + '
          sql.Add('restore database ' + dbname + ' from disk =' + #39 + ExtractFilePath(paramstr(0)) + 'file\zip.fst' + #39 + ' with replace');//
          ExecSQL;
      

  3.   

    sorry this backup:
    sql.Add('backup database ' + dbname + ' to disk =' + #39 + ExtractFilePath(Paramstr(0)) + 'file\zip.fst' + #39 + ' with init');
          ExecSQL;