Subject | Re: Shut Down Database |
---|---|
Author | Adam |
Post date | 2006-03-22T23:06:08Z |
--- In firebird-support@yahoogroups.com, "robertgilland"
<robert_gilland@...> wrote:
connected as them then this will not work. The garbage collection
thread may still be active for a few seconds, how long do you give it
before attempting to rename the file?
Adam
<robert_gilland@...> wrote:
>It does not kick off the SYSDBA or OWNER users, so if you are
> I am using the IboAdmin components to shut down the database.
> with the below code ( Delphi 7 ).
>
> try
> ibConfig.Active := TRUE;
> ibCOnfig.ShutdownDatabase(Forced,spnWaitfor.Value);
> while IBConfig.IsServiceRunning do
> begin
> Sleep(10);
> Application.ProcessMessages;
> end;
> ibConfig.Active := FALSE;
> except
> on E:Exception do
> ShowMessage(E.Message);
> end;
>
> However after I call this procedure, I then try to rename the
> GDB file. I cannot the server is still connected to it.
> I thought calling shut down would kick off all attachments
> to the database. It seems it does not.
connected as them then this will not work. The garbage collection
thread may still be active for a few seconds, how long do you give it
before attempting to rename the file?
Adam