Subject | Re: Start/Stop FB from a program |
---|---|
Author | kimon_the_athenian2 |
Post date | 2004-12-13T12:55:13Z |
Adam, if I understand correctly then your suggestion only works for
firebird service, not application, im I right?
Alan, I don't want to use embedded fb because I got advice from this
forum not to use embedded fb when the application using it is not
robust enought (or otherwise application bugs can accidentally
corrupt database)
The users of my app have generally very old computers and so I don't
want to leave FB running when my application is finished.
Aivar
firebird service, not application, im I right?
Alan, I don't want to use embedded fb because I got advice from this
forum not to use embedded fb when the application using it is not
robust enought (or otherwise application bugs can accidentally
corrupt database)
The users of my app have generally very old computers and so I don't
want to leave FB running when my application is finished.
Aivar
--- In firebird-support@yahoogroups.com, "Adam" <s3057043@y...> wrote:
>
> --- In firebird-support@yahoogroups.com, "kimon_the_athenian2"
> <kimon_the_athenian2@y...> wrote:
> >
> > Hi!
> >
> > How should I start FB server on windows as an application from
> > another (delphi) application?
> >
> > WinExec?, ShellExecute?, CreateProcess?
> >
> > And how to shutdown server safely from the same application?
> > TerminateProcess seems to be able to do this but it seems to be
too
> > harsh.
> >
> > thanks in advance!
> >
> > Aivar
>
>
> net stop "Firebird Server - Default Instance"
> net start "Firebird Server - Default Instance"
>
> Out of curiousity, why shut it down at all?