Solved

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

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
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.
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

706 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

21 Experts available now in Live!

Get 1:1 Help Now