Can I add a dependency to a Windows Service?

1149570 pts.
Tags:
SQL Server database
Windows Services
We currently have a Windows Service that's using a SQL Server database. I don't have control over it (my boss does) but he asked me to add a dependency so it starts up after SQL Server starts up. Can I do this? Is there a specific tool I have to use?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.
you can do this via an elevated command prompt using the sc command. 

sc config [service name] depend= <Dependencies(separated by / (forward slash))>

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • ToddN2000
    Check out the info in Clark's post. I do not see any reason why you should not be able to do it.
    134,635 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: