?
Solved

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

Posted on 2011-03-16
2
Medium Priority
?
265 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
[X]
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
2 Comments
 
LVL 9

Accepted Solution

by:
kaminda earned 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

777 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