﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / SQL Server Services / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 18 May 2013 12:53:46 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SQL Server Services</title><link>http://www.sqlservercentral.com/Forums/Topic664157-146-1.aspx</link><description>we run HP servers and install all the client HP software as part of the install. they have a utility called process monitor where you add the exe files, restart snmp and it send an alert if sql or any service you want to monitor stops</description><pubDate>Wed, 04 Mar 2009 09:34:32 GMT</pubDate><dc:creator>alen teplitsky</dc:creator></item><item><title>RE: SQL Server Services</title><link>http://www.sqlservercentral.com/Forums/Topic664157-146-1.aspx</link><description>Hello '2 Tim 3:16',Nice solution We can cerate the link server and surely it works but what if customer do not agree for link server?Also due to some security issues some of the client do not allow linked server :)Thank you Jeffrey &amp; Perry for your inputs.Cheers!!!</description><pubDate>Wed, 04 Mar 2009 05:26:14 GMT</pubDate><dc:creator>free_mascot</dc:creator></item><item><title>RE: SQL Server Services</title><link>http://www.sqlservercentral.com/Forums/Topic664157-146-1.aspx</link><description>you could use VBS something along the lines ofstrComputer = "." Set objWMIService = GetObject("winmgmts:\\" &amp; strComputer &amp; "\root\CIMV2") Set colItems = objWMIService.ExecQuery( _    "SELECT * FROM Win32_Service where displayname like '%sql%'",,48) For Each objItem in colItems     Wscript.Echo "-----------------------------------"    Wscript.Echo "Win32_Service instance"    Wscript.Echo "-----------------------------------"    Wscript.Echo "DisplayName: " &amp; objItem.DisplayName    Wscript.Echo "Name: " &amp; objItem.Name    Wscript.Echo "ProcessId: " &amp; objItem.ProcessId    Wscript.Echo "Status: " &amp; objItem.StatusNext</description><pubDate>Tue, 03 Mar 2009 14:30:45 GMT</pubDate><dc:creator>Perry Whittle</dc:creator></item><item><title>RE: SQL Server Services</title><link>http://www.sqlservercentral.com/Forums/Topic664157-146-1.aspx</link><description>Using Powershell installed on any system that has network access:PS&amp;gt; Get-WMIObject Win32_Service -computer {computer} | ? {$_.Name -like 'MSSQL*'} | Select Name, StateYou can then extend this to send email what the state is not running, or you can issue a start, or anything else.</description><pubDate>Tue, 03 Mar 2009 13:38:11 GMT</pubDate><dc:creator>Jeffrey Williams 3188</dc:creator></item><item><title>RE: SQL Server Services</title><link>http://www.sqlservercentral.com/Forums/Topic664157-146-1.aspx</link><description>You can create a scheduled job in another sql server on another box.  Create a link and then run a simple query like "select count(*) from linkname..sys.sysdatabases;".  You can schedule the job to run every minute and if the job fails, notify you by email.</description><pubDate>Tue, 03 Mar 2009 13:17:55 GMT</pubDate><dc:creator>2 Tim 3:16</dc:creator></item><item><title>RE: SQL Server Services</title><link>http://www.sqlservercentral.com/Forums/Topic664157-146-1.aspx</link><description>Thank you, John. Your query works but in case if SQL server is down we won't be able to track it.So any solutions are welcome; when SQL server stops :)</description><pubDate>Sun, 01 Mar 2009 22:55:16 GMT</pubDate><dc:creator>free_mascot</dc:creator></item><item><title>RE: SQL Server Services</title><link>http://www.sqlservercentral.com/Forums/Topic664157-146-1.aspx</link><description>Here's a way of doing it in T-SQL.  Obviously it won't work if the SQL Server service itself isn't running![code]EXEC master.dbo.xp_servicecontrol 'QUERYSTATE', 'SQLAgent'[/code]John</description><pubDate>Fri, 27 Feb 2009 08:44:52 GMT</pubDate><dc:creator>John Mitchell-245523</dc:creator></item><item><title>RE: SQL Server Services</title><link>http://www.sqlservercentral.com/Forums/Topic664157-146-1.aspx</link><description>Thank you Adiga &amp; rlondon.Yes both of your reply will be useful.</description><pubDate>Fri, 27 Feb 2009 04:45:54 GMT</pubDate><dc:creator>free_mascot</dc:creator></item><item><title>RE: SQL Server Services</title><link>http://www.sqlservercentral.com/Forums/Topic664157-146-1.aspx</link><description>I have uploaded an attachment of a .vbs file (I changed the extension to .txt for uploading) that I put together to monitor windows services every few minutes and e-mail me with any changes.  I would run this through a scheduled task and it worked great.  The only problem was that if the server was restarted for any reason, the job would not run and I would have to start it manually.  The script may be useful for you anyway.  If anyone can figure out why it won't restart automatically let me know.</description><pubDate>Thu, 26 Feb 2009 08:19:48 GMT</pubDate><dc:creator>rlondon</dc:creator></item><item><title>RE: SQL Server Services</title><link>http://www.sqlservercentral.com/Forums/Topic664157-146-1.aspx</link><description>There is useful command line utility called "SC". With this you can query the service status as below.[quote]SC query mssqlserver[/quote]Hope this helps.Cheers,Pradeep</description><pubDate>Wed, 25 Feb 2009 22:47:34 GMT</pubDate><dc:creator>Adiga</dc:creator></item><item><title>SQL Server Services</title><link>http://www.sqlservercentral.com/Forums/Topic664157-146-1.aspx</link><description>Good Day,I am looking for small .bat code to find the status of SQL Server windows services.In fact I have tried to find it on google but no luck  :(Appreciate if anybody can help with this.Thanks in advance.Cheers!!!</description><pubDate>Wed, 25 Feb 2009 05:56:58 GMT</pubDate><dc:creator>free_mascot</dc:creator></item></channel></rss>