Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 SQL 2005 Service Downtime Alert

Author  Topic 

JeffS23
Posting Yak Master

212 Posts

Posted - 2007-12-27 : 10:17:08
I am trying to create an alert on my new SQL 2005 box to email alert/notify when/if the service ever stops, etc. Is there an existing alert I can use or do I have to script one, and if I do - how would I do it?

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-12-27 : 10:24:02
there's no such event that i know of.
you could write a simple service that pings the server or reads the error log every n seconds...


_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com <- new version out
Go to Top of Page

JeffS23
Posting Yak Master

212 Posts

Posted - 2007-12-27 : 10:26:05
is there a WMI script or something that can check if a service is running or stopped?
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-12-27 : 10:39:12
no idea on the wmi:
http://msdn2.microsoft.com/en-us/library/ms180606.aspx

but you could use SMO
http://www.sqldbatips.com/showarticle.asp?ID=45

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com <- new version out
Go to Top of Page
   

- Advertisement -