Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Bases de datos > Firebird e Interbase
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #6  
Antiguo 22-12-2005
Avatar de Spynosa
Spynosa Spynosa is offline
Miembro
 
Registrado: nov 2004
Ubicación: Ecija - Sevilla
Posts: 99
Poder: 22
Spynosa Va por buen camino
para el backup

Código Delphi [-]
 procedure TForm1.BackupClick(Sender: TObject);
 begin
  with IBBackupService1 do
   begin
     ServerName :='localhost';
     LoginPrompt := False;
     Params.Add('user_name=sysdba');
     Params.Add('password=masterkey');
     Active := True;
     try
       Verbose := True;
       Options := [NonTransportable, IgnoreLimbo];
       DatabaseName := edit1.Text;
       BackupFile.Add(edit2.Text);
 
       ServiceStart;
       While not Eof do
         Memo1.Lines.Add(GetNextLine);
     finally
       Active := False;
     end;
   end;
 
 end;

para el restore

Código Delphi [-]
 procedure TForm1.RestoreClick(Sender: TObject);
 begin
  with IBRestoreService1 do
   begin
     ServerName := 'localhost';
     LoginPrompt := False;
     Params.Add('user_name=sysdba');
     Params.Add('password=masterkey');
     Active := True;
     try
       Verbose := True;
       Options := [Replace, UseAllSpace];
       PageBuffers := 3000;
       PageSize := 4096;
       DatabaseName.Add(edit1.Text);
 
       BackupFile.Add(edit2.Text);
       ServiceStart;
       While not Eof do
         Memo1.Lines.Add(GetNextLine);
     finally
       Active := False;
     end;
   end;
   showmessage('fin');
 end;
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 13:09:46.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi