以编程方式启动/停止SQL Server服务 [英] Programmatically Start/Stop SQL server Service
本文介绍了以编程方式启动/停止SQL Server服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何以编程方式启动/停止网络中的SQL Server服务?
How To Programmatically Start/Stop SQL Server Services in Network?
推荐答案
似乎很快就直接:
Google [ ^ ]
Seems to be faily straight forward:
Google[^]
你有几个工具
1)WMI [ ^ ],从这里开始: Windows Management Instrumentation(WMI)实现 [ ^ ]
2)ServiceController [ ^ ]类
3) SMO [ ^ ]。这个例子是在VB.NET中,但很容易转录: http:/ /msdn.microsoft.com/en-us/library/ms162139(v=sql.90).aspx [ ^ ],其他阅读: SMO - 管理您的SQL Server! [ ^ ]
You have several tools
1) WMI[^], start here: Windows Management Instrumentation (WMI) Implementation[^]
2) ServiceController[^] class
3) SMO[^]. This example is in VB.NET, but quite easy to transcribe: http://msdn.microsoft.com/en-us/library/ms162139(v=sql.90).aspx[^], other reading: SMO - Manage your SQL Server![^]
请参阅以下链接
以编程方式启动和停止SQL Server主服务 [ ^ ]
>
这篇关于以编程方式启动/停止SQL Server服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文