Backup: Cannot attach to service manager

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
fschulze
Posts: 6
Joined: Fri 23 Jan 2009 12:57
Location: Magdeburg, Germany

Backup: Cannot attach to service manager

Post by fschulze » Mon 08 Feb 2010 15:10

I miss an exaple for use of IBCBackupService. So I try by myself:

Code: Select all

 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)

fschulze
Posts: 6
Joined: Fri 23 Jan 2009 12:57
Location: Magdeburg, Germany

Error found: Cannot attach to service manager

Post by fschulze » Mon 08 Feb 2010 15:39

Code: Select all

 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

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 15 Feb 2010 09:25

Was the problem solved? If any other questions come up, please contact me.

Post Reply