{"id":1140,"date":"2007-10-30T19:26:29","date_gmt":"2007-10-30T19:26:29","guid":{"rendered":"\/blogs\/paul\/post\/Fed-up-with-BACKUP-success-messages-bloating-your-error-logs.aspx"},"modified":"2018-04-18T12:37:48","modified_gmt":"2018-04-18T19:37:48","slug":"fed-up-with-backup-success-messages-bloating-your-error-logs","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/","title":{"rendered":"Fed up with BACKUP success messages bloating your error logs?"},"content":{"rendered":"<p>There&#8217;s a well known problem that every time a backup operation succeeds a message is written into the error log and Windows event log. If you&#8217;re taking very frequent log backups (say every 5 minutes) of multiple databases, that&#8217;s a significant amount of clutter in the logs. Well &#8211; now there&#8217;s a fix!<\/p>\n<p>Kevin Farlee, the Storage Engine PM responsible for (among many other things) <em>BACKUP<\/em> and <em>RESTORE<\/em> has just <a href=\"http:\/\/blogs.msdn.com\/b\/sqlserverstorageengine\/archive\/2007\/10\/30\/when-is-too-much-success-a-bad-thing.aspx\">blogged<\/a> about a trace flag\u00a0&#8211; 3226 &#8211; that&#8217;s been in the product since SQL Server 2000\u00a0and he&#8217;s planning to document this (and other) trace flags in this area starting in SQL Server 2008.<\/p>\n<p>The trace flag stops successful backups from printing messages, so you only see messages when a backup fails. Backups always print failure messages when they fail, so this trace flag is safe to enable.<\/p>\n<p>You can enable\u00a0it using <em>DBCC TRACEON (3226,<\/em> -1),<em>\u00a0<\/em>where\u00a0the -1 turns on the trace flag for all connections without having to restart SQL Server, and you can make it a startup trace flag too.<\/p>\n<p>I strongly recommend that everyone enables this trace flag &#8211; there are no downsides.<\/p>\n<p>Excellent!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a well known problem that every time a backup operation succeeds a message is written into the error log and Windows event log. If you&#8217;re taking very frequent log backups (say every 5 minutes) of multiple databases, that&#8217;s a significant amount of clutter in the logs. Well &#8211; now there&#8217;s a fix! Kevin Farlee, [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,86,96],"tags":[],"class_list":["post-1140","post","type-post","status-publish","format-standard","hentry","category-backuprestore","category-sql-server-2008","category-trace-flags"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fed up with BACKUP success messages bloating your error logs? - Paul S. Randal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fed up with BACKUP success messages bloating your error logs? - Paul S. Randal\" \/>\n<meta property=\"og:description\" content=\"There&#8217;s a well known problem that every time a backup operation succeeds a message is written into the error log and Windows event log. If you&#8217;re taking very frequent log backups (say every 5 minutes) of multiple databases, that&#8217;s a significant amount of clutter in the logs. Well &#8211; now there&#8217;s a fix! Kevin Farlee, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/\" \/>\n<meta property=\"og:site_name\" content=\"Paul S. Randal\" \/>\n<meta property=\"article:published_time\" content=\"2007-10-30T19:26:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-04-18T19:37:48+00:00\" \/>\n<meta name=\"author\" content=\"Paul Randal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Randal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/\",\"name\":\"Fed up with BACKUP success messages bloating your error logs? - Paul S. Randal\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\"},\"datePublished\":\"2007-10-30T19:26:29+00:00\",\"dateModified\":\"2018-04-18T19:37:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fed up with BACKUP success messages bloating your error logs?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\",\"name\":\"Paul S. Randal\",\"description\":\"In Recovery...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\",\"name\":\"Paul Randal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"caption\":\"Paul Randal\"},\"sameAs\":[\"http:\/\/3.209.169.194\/blogs\/paul\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fed up with BACKUP success messages bloating your error logs? - Paul S. Randal","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/","og_locale":"en_US","og_type":"article","og_title":"Fed up with BACKUP success messages bloating your error logs? - Paul S. Randal","og_description":"There&#8217;s a well known problem that every time a backup operation succeeds a message is written into the error log and Windows event log. If you&#8217;re taking very frequent log backups (say every 5 minutes) of multiple databases, that&#8217;s a significant amount of clutter in the logs. Well &#8211; now there&#8217;s a fix! Kevin Farlee, [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/","og_site_name":"Paul S. Randal","article_published_time":"2007-10-30T19:26:29+00:00","article_modified_time":"2018-04-18T19:37:48+00:00","author":"Paul Randal","twitter_misc":{"Written by":"Paul Randal","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/","name":"Fed up with BACKUP success messages bloating your error logs? - Paul S. Randal","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website"},"datePublished":"2007-10-30T19:26:29+00:00","dateModified":"2018-04-18T19:37:48+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/fed-up-with-backup-success-messages-bloating-your-error-logs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/paul\/"},{"@type":"ListItem","position":2,"name":"Fed up with BACKUP success messages bloating your error logs?"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/","name":"Paul S. Randal","description":"In Recovery...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce","name":"Paul Randal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","caption":"Paul Randal"},"sameAs":["http:\/\/3.209.169.194\/blogs\/paul"],"url":"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/1140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/comments?post=1140"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/1140\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/media?parent=1140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/categories?post=1140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/tags?post=1140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}