如何在应用程序中查找SQL Server是否正在运行 [英] How to find SQL Server is Running or not in Application

查看:76
本文介绍了如何在应用程序中查找SQL Server是否正在运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,



一旦SQL Server关闭。我的应用程序没有运行。

据一位客户报告。然后我们通过与DBA团队沟通进行排序。



是否有任何选项可以在应用程序或网页中运行或不使用SQL Server。

Dear Friends,

Once SQL Server was down. My applications where not running.
It was reported by one of the client. Then we have sorted by communicating to DBA Team.

Is there any option find SQL Server is running or not using in an application or web-page.

推荐答案

我认为最简单的方法就是尝试连接到SQL服务器。如果连接成功,您就知道整个堆栈正在运行,如果没有,则会收到一条错误消息,指示您前进。
I think the easiest way is simply to try to connect to the SQL server. If the connection is successful you know that the whole stack is working and if not you get an error message which leads you forward.


这篇关于如何在应用程序中查找SQL Server是否正在运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆