Code: Select all
IBCConfigService1.Active := True;
IBCConfigService1.ShutdownDatabase(smForced, 1);
IBCConfigService1.Active := False;
IBCRestoreService1.Active := TRUE;
IBCRestoreService1.Attach;
IBCRestoreService1.ServiceStart;
while IBCRestoreService1.IsServiceRunning do begin
Application.ProcessMessages;
end;
IBCRestoreService1.Detach;
It gives me: (on while IsServiceRunning)
Code: Select all
database shutdown unsuccessful
failed to create database D:\test\test.fdb'.
Code: Select all
Target shutdown mode is invalid for database "D:\test\test.fdb"'
I'm using IBDAC 3.50.0.21, Firebird 2.5 and Delphi 2010
Where can be the problem?