﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Joseph Sack / Article Discussions / Article Discussions by Author  / Seven Monitoring Scripts / 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>Fri, 24 May 2013 12:45:54 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>&lt;P&gt;Another tip for xp_readerrorlog -- the first parameter is an integer that determines which error log to read.&lt;/P&gt;&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;P&gt;xp_readerrorlog      -- current errorlog&lt;/P&gt;&lt;P&gt;xp_readerrorlog 1    -- most recent archived errorlog&lt;/P&gt;&lt;P&gt;xp_readerrorlog 2    -- etc.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P dir=ltr&gt;Dave.&lt;/P&gt;</description><pubDate>Mon, 15 May 2006 06:16:00 GMT</pubDate><dc:creator>Dave May</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>&lt;P&gt;&lt;FONT color=#dd3333&gt;sql monitoring tips are excelent. i expect more tips like that.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#dd3333&gt;thax and regards&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#dd3333&gt;kiran&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#dd3333&gt;sql dba&lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;/FONT&gt;&lt;/P&gt;</description><pubDate>Wed, 20 Jul 2005 05:48:00 GMT</pubDate><dc:creator>chadra kiran</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>&lt;P&gt;These scripts are very useful.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;/P&gt;</description><pubDate>Mon, 16 May 2005 08:13:00 GMT</pubDate><dc:creator>Zman57</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>&lt;P&gt;Smart and simple. &lt;/P&gt;&lt;P&gt;I also find using sysjobs_view useful in place of sysjobs. Especially if you are managing more than one server. &lt;/P&gt;&lt;P&gt;The extra colum originating_Server can tell which server the job failed on.&lt;/P&gt;&lt;P&gt;&lt;img src='images/emotions/biggrin.gif' height='20' width='20' border='0' title='Big Grin' align='absmiddle'&gt;&lt;/P&gt;</description><pubDate>Mon, 16 May 2005 01:16:00 GMT</pubDate><dc:creator>growl</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>Excellent.</description><pubDate>Sun, 15 May 2005 23:20:00 GMT</pubDate><dc:creator>Roshan Patel</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>&lt;P&gt;Great scripts.  Very useful.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vipul&lt;/P&gt;</description><pubDate>Fri, 13 May 2005 07:42:00 GMT</pubDate><dc:creator>Vipul Shah</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>&lt;P&gt;I am going to add some of these into my daily reports.  And yes, I do have co-workers that slip in new sysadmin users!  At least this way I'll know it right away.&lt;/P&gt;&lt;P&gt;Any good scripts for monitoring replication status?&lt;/P&gt;&lt;P&gt;Regards,Scott&lt;/P&gt;</description><pubDate>Fri, 13 May 2005 07:08:00 GMT</pubDate><dc:creator>Scott Arendt</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>&lt;P&gt;Good stuff.  To para #3 I would add "and unscheduled jobs."  &lt;/P&gt;&lt;P&gt;I've been burned by someone else either removing or disabling the schedule of a regularly-scheduled job.  At first glance you say "it's still enabled, why didn't it run?"  There's no easy way to check if the schedule was deleted, but it is easy to see if the schedule is disabled.&lt;/P&gt;</description><pubDate>Mon, 14 Jun 2004 08:13:00 GMT</pubDate><dc:creator>Mike Good</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>Just what I was looking for to drive my ASP status report.One other tip for #7, I modified the SELECT statement to be like this,&lt;pre id=code&gt;&lt;font face=courier size=2 id=code&gt;SELECT TOP 50	CONVERT(datetime, LEFT(vchMsg, 23), 121) as MsgDate	, SUBSTRING(vchMsg, 24, 10) as MsgSource	, SUBSTRING(vchMsg, 33, 800) as MsgTextFROM #Tmp WHERE vchMsg NOT LIKE '%Log backed up%'	AND vchMsg NOT LIKE '%.TRN%'	AND vchMsg NOT LIKE '%Database backed up%'	AND vchMsg NOT LIKE '%.BAK%'	AND vchMsg NOT LIKE '%Run the RECONFIGURE%'	AND vchMsg NOT LIKE '%Copyright (c)%' 	AND LTRIM(RTRIM(LEFT(vchMsg, 1))) &amp;lt;&amp;gt; CHAR(9)	AND ID = 0ORDER BY 	CONVERT(datetime, LEFT(vchMsg, 23), 121) DESC&lt;/font id=code&gt;&lt;/pre id=code&gt;Now it shows the date, source and message text in seperate fields. The TOP 50 and ORDER BY I put in so that only the last 50 messages are displayed.I'd like to improve it further by using the either the OPENROWSET or OPENQUERY statements to execute the xp_readerrorlog procedure. This would get rid of the temp table and I could put this in a stored procedure on one server and dynamically retrieve the error logs from servers that aren't linked.The alternative to the stored procedure approach would be to open a database connection on the ASP page and dynamically build and execute the SQL statement there. Not my preferred option.Hope this helpsPhill Carter--------------------Colt 45 - the original point and click interface &lt;img src=icon_smile_wink.gif border=0 align=middle&gt;Edited by - phillcart on 09/14/2003  8:02:15 PMEdited by - phillcart on 09/14/2003  8:03:56 PM</description><pubDate>Sun, 14 Sep 2003 20:00:00 GMT</pubDate><dc:creator>philcart</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>This is a great article.  My only suggestion would be to use master..xp_readerrorlog in the script in tip # 7.Thanks,Biva </description><pubDate>Fri, 12 Sep 2003 11:07:00 GMT</pubDate><dc:creator>byauchler</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>For the script that is looking for jobs still running I think an easyer script will bemsdb.dbo.sp_get_composite_job_info  @execution_status = 1since the rest of parameters has a default NULL.Ionel </description><pubDate>Wed, 18 Jun 2003 13:41:00 GMT</pubDate><dc:creator>icata</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>Thank you for all but the coolest one is the SQL log script:) </description><pubDate>Fri, 13 Jun 2003 14:21:00 GMT</pubDate><dc:creator>tulcanla</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>Very nice scripts. Need some modifications for me, but these are handy to have around.Steve Jonessjones@sqlservercentral.comhttp://www.sqlservercentral.com/columnists/sjoneswww.dkranch.net</description><pubDate>Fri, 13 Jun 2003 09:27:00 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>Just an addendum to my article - for the "INSERT #Errors EXEC xp_readerrorlog", this extended proc is in the master database... So change it to:INSERT #Errors EXEC master..xp_readerrorlogAlso - remember to drop the temp table.DROP TABLE #ErrorsThanks! </description><pubDate>Fri, 13 Jun 2003 05:43:00 GMT</pubDate><dc:creator>IsaacGoGo</dc:creator></item><item><title>RE: Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>Joseph's tips are always excellent but practicle as well (I would also recommend his book SQL 2000 Fast Answers)paul warwick</description><pubDate>Fri, 13 Jun 2003 01:51:00 GMT</pubDate><dc:creator>PAUL WARWICK</dc:creator></item><item><title>Seven Monitoring Scripts</title><link>http://www.sqlservercentral.com/Forums/Topic13119-114-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF=http://www.sqlservercentral.com/columnists/jsack/sevenmonitoringscripts.asp&gt;http://www.sqlservercentral.com/columnists/jsack/sevenmonitoringscripts.asp&lt;/A&gt;</description><pubDate>Wed, 11 Jun 2003 00:00:00 GMT</pubDate><dc:creator>IsaacGoGo</dc:creator></item></channel></rss>