Solved

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

Posted on 2011-03-16
2
260 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now