How to make sure to start SQL Server before the windows service in a software package

166 Views Asked by At

I have a software package which has web, windows service, and SQL Server components.

I need to make sure that SQL Server is up and running before the service starts - when the machine starts/reboots.

Please suggest a good approach for doing this.

1

There are 1 best solutions below

0
On

The following link is helpful if you want to do such dependency settings in your C# Windows Service itself.

creating service dependency using C#