I wrote a little windows-service for creating a daily backup of a local Firebird database. I use the TIBCBackupService for it.
On XP or Vista it runs perfect, but under Windows 7 (64bit) I will get the error: "Your user name and passwort are not defined. Ask your database administrator to set up a Firebird login."
The username and passwort are set correct and if I make a backup with other tools (e.g. ibexpert) it works without a problem.
I think, the problem is the service. Does anyone know, if there are restrictions in windows 7 that make such problems?
I use TCP for the connection and I've disabled the firewall for testing.
Any ideas?
Problem: TIBCBackupService in a windows service on Windows 7
-
AndreyZ
Hello,
I cannot reproduce the problem. I've tried to use the following code:, and there were no problems. Please check if this code works for you. Also check that you are really using the correct user name and password.
I cannot reproduce the problem. I've tried to use the following code:
Code: Select all
procedure TIBDAC_Service.ServiceExecute(Sender: TService);
begin
try
IBCBackupService1.ClientLibrary := 'fbclient.dll';
IBCBackupService1.Server := 'server';
IBCBackupService1.Username := 'sysdba';
IBCBackupService1.Password := 'masterkey';
IBCBackupService1.Database := 'database';
IBCBackupService1.LoginPrompt := False;
IBCBackupService1.BackupFile.Text := 'filename';
IBCBackupService1.Attach;
IBCBackupService1.ServiceStart;
while IBCBackupService1.IsServiceRunning do;
finally
IBCBackupService1.Detach;
end;
end;