如何监视SQL Server的运行状态?

乡村 2001-10-31 11:51:04
本人用Recordset打开记录集,如果SQL Server服务停止的话,记录集便处于关闭状态,不知如何监视SQL Server是否运行?
...全文
202 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ArmorCar 2001-10-31
  • 打赏
  • 举报
回复
You can use "OpenSCManager" to open connection to the service control manager on the specified computer .Use "OpenService" to get the handle of the service,then use "QueryServiceStatus" to retrieves the current status of the specified service.
乡村 2001-10-31
  • 打赏
  • 举报
回复
谢谢你的见意!

34,590

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧