![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#5
|
||||
|
||||
|
hola, si estas usando los ibx puedes usar un componente IBBackupService y hacer lo siguiente:
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; y para restaurarlo usa IBRestoreService: with IBRestoreService1 do begin ServerName := 'Poulet'; 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; |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
|