问题1:你可以在SQL SERVER中用windows操作方式进行Backup与Restore,在菜单All tasks中。
问题2:我自已写了个程序你可以看一看
procedure TForm1.Button1Click(Sender: TObject);
var
  Bcpfile:TextFile;
  S:string;
  I,J:integer;
begin
  with Table1 do
  begin
    Assignfile(Bcpfile,Edit1.Text);//在Edit1中输入备份路径
    Rewrite(Bcpfile);
    First;
    while not eof do
    begin
      S:='';
      for I:=0 to FieldCount-1 do
      with Fields[I] do
      begin
        S:=S+AsString;
        if Length(AsString)<Size then
        for j:=length(AsString)+1 to size do
        begin
          s:=s+' ';
        end;
        if Size=0 then
          s:=s+chr(9);
      end;
      s:=s+chr(9);
      writeln(Bcpfile,s);
      Next;
    end;
    CloseFile(BcPfile);
  end;
end;

解决方案 »

  1.   

    netboy 的方法没错!
    Restore DataBase 到原来已有的且(被别人)正在使用(Connection) DataBase 当然要报错了!
    应该先断开其他的连接在做!
      

  2.   

    netboy 的方法没错!
    Restore DataBase 到原来已有的且(被别人)正在使用(Connection) DataBase 当然要报错了!
    应该先断开其他的连接再做!
    BackUp 应无问题
      

  3.   

    第一个问题就不多说了
    第二个问题:
    用TQuery.sql.text:='create table tablename (fieldname fieldtype)'建一个表
    然后添加记录
      

  4.   

    在设计期间,由于Delphi设计方式,其控件仍然连接着数据库,因此数据库会报告数据库仍然被连接,在ADOConnection的属性栏中将其的连接断开试试