开发者

How to load dependencies(MS-SQLServer Win-Service) before windows-services

help me with an issue please. My windows service depended on MS SQL server, and It has to load some information on start up, but it is starts before MS SQL and stops with an exception. I set dependency with a "sc" tool (sc config MyService depend= MSSQL) but my service still does not start on system load. MS SQL added as depednecy, I can see it in dependency tab of service properties and sc qc MyService command but my service still does not start. Can anyone help? My system is Win7, MS SQL Server 2008 R2, my service runs under开发者_JAVA技巧 local system and MS SQL is network service. Thanks a lot.

P.S. Sorry for poor English.


I think you should use dependencies

How to delay loading of specific services

or use "Automatic (Delayed Start)" option for your service Please read

WS2008: Startup Processes and Delayed Automatic Start

or

You can manage this through programming logic, that if resource is unavailable

repetitively check for it and when its available proceed for normal operation,

and you can intimate Service Client though appropriate response

Hopes that helps

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜