Subject | IBConfigService1.ShutDownDatabase |
---|---|
Author | Valdir Marcos |
Post date | 2005-11-21T01:58:10Z |
Delphi 7 + IBX 7.08 + FB 1.5.2.4731
I have started one executable, then I have started another one in the same machine, both conected to the same FDB.
The seconde executable does:
- IBConfigService1.ShutDownDatabase(Forced,0);
- IBRestoreService.Protocol := TCP;
- IBRestoreService.Options := [Replace, CreateNewDB, UseAllSpace];
- IBConfigService1.BringDatabaseOnline;
Then, I recieve the error message:
"Error restoring database: 127.0.0.1:C:\Test\Project1.fdb unsuccessful metadata update object DATABASE is in use could not drop database C:\Test\Project1.fdb (database might be in use)"
1. When I do a ShutDown, shouldn't FB detach all conections?
2. How can I use FB exclusively for Restore, denying al other conections during the Restore process?
Thanks,
Valdir Marcos
[Non-text portions of this message have been removed]
I have started one executable, then I have started another one in the same machine, both conected to the same FDB.
The seconde executable does:
- IBConfigService1.ShutDownDatabase(Forced,0);
- IBRestoreService.Protocol := TCP;
- IBRestoreService.Options := [Replace, CreateNewDB, UseAllSpace];
- IBConfigService1.BringDatabaseOnline;
Then, I recieve the error message:
"Error restoring database: 127.0.0.1:C:\Test\Project1.fdb unsuccessful metadata update object DATABASE is in use could not drop database C:\Test\Project1.fdb (database might be in use)"
1. When I do a ShutDown, shouldn't FB detach all conections?
2. How can I use FB exclusively for Restore, denying al other conections during the Restore process?
Thanks,
Valdir Marcos
[Non-text portions of this message have been removed]