0

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.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Hershika Sharma
  • 105
  • 1
  • 14
  • Maybe this can help you: https://serverfault.com/questions/24821/how-to-add-dependency-on-a-windows-service-after-the-service-is-installed – Andrea May 31 '17 at 19:13
  • Thank you! But do you know where I should implement it. Has it to be done in all machines where i have installed my package. Or i can handle it in my service code. – Hershika Sharma Jun 01 '17 at 04:28

1 Answers1

0

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

creating service dependency using C#

Hershika Sharma
  • 105
  • 1
  • 14