Solved

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

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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
In this article I will describe the Copy Database Wizard 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.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

695 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