| View previous topic :: View next topic |
| Author |
Message |
fschulze
Joined: 23 Jan 2009 Posts: 4 Location: Magdeburg, Germany
|
Posted: Mon 08 Feb 2010 15:10 Post subject: Backup: Cannot attach to service manager |
|
|
I miss an exaple for use of IBCBackupService. So I try by myself:
| Code: | IBCBackupService1.LoginPrompt := False;//show no Login window
IBCBackupService1.Username := 'sysdba';
IBCBackupService1.Password := 'masterkey';
IBCBackupService1.Database := 'localhost:c:\dbs\mydb.gdb';
IBCBackupService1.BackupFile.Text := 'c:\dbs\mydb.gbk';
IBCBackupService1.Attach;//connect to DB
IBCBackupService1.ServiceStart;//run backup |
On Attach command I get an exception: "Cannot attach to service manager."
What's wrong?
Is there a detailed describtion how to backup and restore?
(I use Delphi 2010 on Windows Vista Ultimate 64 SP2 and Firebird 2.0) |
|
| Back to top |
|
 |
fschulze
Joined: 23 Jan 2009 Posts: 4 Location: Magdeburg, Germany
|
Posted: Mon 08 Feb 2010 15:39 Post subject: Error found: Cannot attach to service manager |
|
|
| Code: | IBCBackupService1.ClientLibrary := 'gds32.dll';//with Path, if not in Windows\system32
IBCBackupService1.Protocol := TCP;//for const TCP include Unit IBC
IBCBackupService1.LoginPrompt := False;//show no Login window
IBCBackupService1.Username := 'sysdba';
IBCBackupService1.Password := 'masterkey';
IBCBackupService1.Server := 'localhost';
IBCBackupService1.Database := 'c:\dbs\mydb.gdb';//local server view
IBCBackupService1.BackupFile.Text := 'c:\dbs\mydb.gbk';
IBCBackupService1.Attach;//connect to DB
IBCBackupService1.ServiceStart;//run backup |
|
|
| Back to top |
|
 |
Dimon Devart Team
Joined: 05 Mar 2007 Posts: 2305
|
Posted: Mon 15 Feb 2010 09:25 Post subject: |
|
|
| Was the problem solved? If any other questions come up, please contact me. |
|
| Back to top |
|
 |
|