Subject | Re: Database shutdown from code? IBOAdmin? |
---|---|
Author | robert.gilland |
Post date | 2011-07-07T22:45:54Z |
Yes:
IBConfig: TIBOConfigService;
Modes Supported:
TShutdownMode = (Forced, DenyTransaction, DenyAttachment);
ibConfig.Active := TRUE;
ibCOnfig.ShutdownDatabase(Forced,Secs);
Sleep(Secs * 1000);
ibConfig.Active := FALSE;
IBConfig: TIBOConfigService;
Modes Supported:
TShutdownMode = (Forced, DenyTransaction, DenyAttachment);
ibConfig.Active := TRUE;
ibCOnfig.ShutdownDatabase(Forced,Secs);
Sleep(Secs * 1000);
ibConfig.Active := FALSE;