Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How do I check if the SQL server(s) is running or not?

Posted on 2011-03-16
2
261 Views
Last Modified: 2012-05-11
How do I check if the SQL server(s) is running or not? and notify through email if the sql server has stopped running..

Is there a monitoring tool that I can use?

thanks in advance

0
Comment
Question by:vrao19
2 Comments
 
LVL 13

Expert Comment

by:agarwalrahul
ID: 35153704
0
 
LVL 9

Accepted Solution

by:
kaminda earned 500 total points
ID: 35153970
You can check whether SQL Server is running or not in the windows services section. This can be done by typing services.msc in the run dialog box. Then you can find the service with the name SQL Server (your instance name).

If you want to get an alert when the service fails you have to write your own bat file to do so. You can configure this bat file by going in to properties of the service, then recovery and selecing the bat file to run in the drop down box of failure actions.

You can find a good example of a email sending bat file here http://www.paulsadowski.com/WSH/cmdmail.htm
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question