<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'SQL Server 2008', 'Maintenance', and 'SQL Server Agent'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=SQL+Server+2008,Maintenance,SQL+Server+Agent&amp;orTags=0</link><description>Search results matching tags 'SQL Server 2008', 'Maintenance', and 'SQL Server Agent'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>sp_altermessage is back in business!</title><link>http://sqlblog.com/blogs/tibor_karaszi/archive/2009/05/14/sp-altermessage-is-back-in-business.aspx</link><pubDate>Thu, 14 May 2009 20:36:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:14063</guid><dc:creator>TiborKaraszi</dc:creator><description>&lt;P&gt;Just a quick note that we again can modify whether system messages are to go to eventlog/errorlog again. I.e., we can change the is_event_logged column in sys.messages. This is very valuable in general and specifically is you want to define Agent alerts (for which Agent polls the Eventlog). For instance:&lt;/P&gt;
&lt;P&gt;SELECT * FROM sys.messages &lt;BR&gt;WHERE message_id = 1205&lt;BR&gt;AND language_id = 1033&lt;/P&gt;
&lt;P&gt;Notice the value for the is_event_logged column. Now, run below:&lt;/P&gt;
&lt;P&gt;EXEC sp_altermessage&lt;BR&gt;&amp;nbsp;@message_id = 1205&lt;BR&gt;,@parameter = 'WITH_LOG'&lt;BR&gt;,@parameter_value = 'true' &lt;/P&gt;
&lt;P&gt;Now, re-run the select statement and see that you modified the behavior for the system message. Now, re-run the sp_altermessage with 'false' to reset to default.&lt;/P&gt;
&lt;P&gt;The ability to modify this behavior for system messages was available prior to SQL Server 2005, but some re-architecturing in 2005 removed the functionality. kozloski informed me in this &lt;A title="this blog post" href="http://sqlblog.com/blogs/tibor_karaszi/archive/2009/02/23/where-s-that-sys-messages-management-pack.aspx"&gt;blog post&lt;/A&gt;&amp;nbsp;that 2005 sp3 re-introduced the functionality and obviously as of sp1 the functionlity is back in 2008 as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>