<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title> &#187; TRUNCATE_ONLY</title>
	<atom:link href="http://benchmarkitconsulting.com/tag/truncate_only/feed/" rel="self" type="application/rss+xml" />
	<link>http://benchmarkitconsulting.com</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 16:34:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Bad Advice (BACKUP LOG [mydb] WITH TRUNCATE_ONLY)</title>
		<link>http://benchmarkitconsulting.com/colin-stasiuk/2009/03/30/bad-advice-backup-log-mydb-with-truncate_only/</link>
		<comments>http://benchmarkitconsulting.com/colin-stasiuk/2009/03/30/bad-advice-backup-log-mydb-with-truncate_only/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 16:23:17 +0000</pubDate>
		<dc:creator>Colin Stasiuk</dc:creator>
				<category><![CDATA[Benchmark IT Consulting]]></category>
		<category><![CDATA[Colin Stasiuk]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Advice]]></category>
		<category><![CDATA[BACKUP LOG]]></category>
		<category><![CDATA[bad avice]]></category>
		<category><![CDATA[TRUNCATE_ONLY]]></category>

		<guid isPermaLink="false">http://benchmarkitconsulting.com/?p=607</guid>
		<description><![CDATA[So I was doing my morning reading when I came across an article talking about someone who had a problem in their production environment with a transaction log that was too big.  The author then gave their solution to this problem as a way to resolve it: Backup log [mydb] with truncate_only go DBCC SHRINKFILE (2) [...]]]></description>
			<content:encoded><![CDATA[<p>So I was doing my morning reading when I came across an article talking about someone who had a problem in their production environment with a transaction log that was too big. </p>
<p>The author then gave their solution to this problem as a way to resolve it:</p>
<p>Backup log [mydb] with truncate_only<br />
go<br />
DBCC SHRINKFILE (2)<br />
go</p>
<p>The author then followed this up with a &#8220;so if you ever get this problem run this script and you&#8217;ll be fine&#8221;.</p>
<p> <strong>Very dangerous script to run in a production environment</strong>.  While this may solve the &#8220;my log file is too big&#8221; problem if you run this script you are going to be breaking your LSN chain and all future log backups will fail until you take a full or differential backup. </p>
<p>I know a few people have written articles (sorry I can&#8217;t find/link to any right now) about giving bad advice online and that anything you read should NOT be taken as gospel.  You just need to make sure if you&#8217;re going to use a solution that you&#8217;ve seen online that you make sure that for your environment it&#8217;s the right solution. </p>
<p>The online community is a wonderful place and I fully endorse the sharing of information&#8230;but</p>
<p><strong>Authors:</strong>  Make sure to do your best to properly illustrate when you should/shouldn&#8217;t use potentially dangerous scripts like the one above along with the corresponding risks</p>
<p><strong>Readers:  </strong>Make sure that you fully understand the solutions provided by the online community before implementing them into your production environment</p>
<p>As Jerry Springer would say: &#8220;Take care of yourself and each other&#8221;</p>
<p>Enjoy!!</p>
<p style="text-align: left;"><a href="http://benchmarkitconsulting.com"><img class="alignnone size-full wp-image-402" title="benchmark_sm" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/02/benchmark_sm.jpg" alt="" /></a><a href="http://sqlserverpedia.com/wiki/Editors#Colin_Stasiuk" target="_blank"><img src="http://sqlserverpedia.com/badges/SQLServerPedia_Badge_Blogger.jpg" alt="" /> </a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Bad+Advice+%28BACKUP+LOG+%5Bmydb%5D+WITH+TRUNCATE_ONLY%29+http://tinyurl.com/cog6w4" title="Post to Twitter"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/03/30/bad-advice-backup-log-mydb-with-truncate_only/&amp;title=Bad+Advice+%28BACKUP+LOG+%5Bmydb%5D+WITH+TRUNCATE_ONLY%29" title="Post to Delicious"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-delicious-big4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/03/30/bad-advice-backup-log-mydb-with-truncate_only/&amp;title=Bad+Advice+%28BACKUP+LOG+%5Bmydb%5D+WITH+TRUNCATE_ONLY%29" title="Post to Digg"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-digg-big4.png" alt="Post to Digg" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/03/30/bad-advice-backup-log-mydb-with-truncate_only/&amp;title=Bad+Advice+%28BACKUP+LOG+%5Bmydb%5D+WITH+TRUNCATE_ONLY%29" title="Post to StumbleUpon"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-su-big4.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://benchmarkitconsulting.com/colin-stasiuk/2009/03/30/bad-advice-backup-log-mydb-with-truncate_only/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

