Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Stop & Start the EDB Server?
Sat, Apr 18 2020 12:56 AMPermanent Link

Ian Branch

Avatar

Hi Team,
Can I stop and restart the EDB server from my application?
If so, how please?
I need to make sure all open sessions are released before I try to do a restore else I get a locking error.

Regards & TIA,
Ian
Sun, Apr 19 2020 5:15 AMPermanent Link

Matthew Jones

Ian Branch wrote:

> Can I stop and restart the EDB server from my application?
> If so, how please?

You can use the standard service control API of Windows to start and stop any service. Only slight issue is it needs elevated permissions, so it may be necessary to write a utility application that takes parameters and you then launch it from your main application and Windows will ask for elevation.

I use some Delphi code that has been around for many years on the net.

--

Matthew Jones
Image