hpd71
Posts: 5
Joined: Thu Oct 28, 2021 12:51 pm

Service startup dependency

Hi,

I have a windows service that is set to auto start. However the service is mainly doing work on the SQL server. The service is starting fine, but because it start so quickly (on say a reboot) then the service fails as the SQL server take a lot longer to start up..

Is there a way to have my service dependant on the sql service being started first ?

I can see there is a dependency value in the service properties/context but I can't figure out what to put in that for this to do as I need.


Any advice/tips or solutions would be great.

H
Catalin
Posts: 7269
Joined: Wed Jun 13, 2018 7:49 am

Re: Service startup dependency

Hello,

In order to achieve what you want, you can use the "Dependencies" field.
Dependencies - The list of the required active applications or services needed before this service starts.
Basically here you can input the name of the SQL Service. The name can be retrieved by right clicking the service --> "Properties" --> "Service Name"
Screenshot_42.png
Screenshot_42.png (27.57 KiB) Viewed 3197 times
Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”