<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Shrink the Unshrinkable SQL Transaction Log</title>
	<atom:link href="http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/</link>
	<description>Take a byte out of tech!</description>
	<lastBuildDate>Wed, 08 Feb 2012 15:54:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: James</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-119042</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 06 Dec 2011 19:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-119042</guid>
		<description>Works nice,found it here too

http://www.sqlserveroptimizer.com/2011/11/how-to-shrink-logfile-in-sql-server-20052008/

thanks again</description>
		<content:encoded><![CDATA[<p>Works nice,found it here too</p>
<p><a href="http://www.sqlserveroptimizer.com/2011/11/how-to-shrink-logfile-in-sql-server-20052008/" rel="nofollow">http://www.sqlserveroptimizer.com/2011/11/how-to-shrink-logfile-in-sql-server-20052008/</a></p>
<p>thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Thornton</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-111706</link>
		<dc:creator>Mark Thornton</dc:creator>
		<pubDate>Wed, 05 Oct 2011 11:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-111706</guid>
		<description>Brilliant - you not only confirmed my suspicions of a bug in SQL Server 2008, but also gave me a workaround.

Many thanks!</description>
		<content:encoded><![CDATA[<p>Brilliant &#8211; you not only confirmed my suspicions of a bug in SQL Server 2008, but also gave me a workaround.</p>
<p>Many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amith</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-109137</link>
		<dc:creator>amith</dc:creator>
		<pubDate>Wed, 14 Sep 2011 06:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-109137</guid>
		<description>&quot; perfect solution &quot;

thanx a lot........</description>
		<content:encoded><![CDATA[<p>&#8221; perfect solution &#8221;</p>
<p>thanx a lot&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-101293</link>
		<dc:creator>Dean</dc:creator>
		<pubDate>Mon, 11 Jul 2011 16:49:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-101293</guid>
		<description>Piecing the post and comments together, what worked for me in the end with SQL 2008 was the following:

BACKUP LOG DatabaseName TO DISK = N&#039;D:\Backup\DatabaseName_log.bak&#039;
GO
DBCC SHRINKFILE(&quot;MyDatabase_Log&quot;, 1)
GO

Thanks guys.</description>
		<content:encoded><![CDATA[<p>Piecing the post and comments together, what worked for me in the end with SQL 2008 was the following:</p>
<p>BACKUP LOG DatabaseName TO DISK = N&#8217;D:\Backup\DatabaseName_log.bak&#8217;<br />
GO<br />
DBCC SHRINKFILE(&#8220;MyDatabase_Log&#8221;, 1)<br />
GO</p>
<p>Thanks guys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-71489</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 18 Jan 2011 16:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-71489</guid>
		<description>Thanks! worked</description>
		<content:encoded><![CDATA[<p>Thanks! worked</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-71335</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Mon, 17 Jan 2011 20:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-71335</guid>
		<description>Brilliant.  Bacon saved, thanks.</description>
		<content:encoded><![CDATA[<p>Brilliant.  Bacon saved, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL Server 2005 can&#8217;t increase log file size Drija</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-61058</link>
		<dc:creator>SQL Server 2005 can&#8217;t increase log file size Drija</dc:creator>
		<pubDate>Thu, 18 Nov 2010 08:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-61058</guid>
		<description>[...] Found a solution. [...]</description>
		<content:encoded><![CDATA[<p>[...] Found a solution. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-46640</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 30 Jun 2010 14:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-46640</guid>
		<description>Good article on the issue of transaction log management:

http://www.sqlskills.com/BLOGS/PAUL/post/Importance-of-proper-transaction-log-size-management.aspx</description>
		<content:encoded><![CDATA[<p>Good article on the issue of transaction log management:</p>
<p><a href="http://www.sqlskills.com/BLOGS/PAUL/post/Importance-of-proper-transaction-log-size-management.aspx" rel="nofollow">http://www.sqlskills.com/BLOGS/PAUL/post/Importance-of-proper-transaction-log-size-management.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sonet</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-45585</link>
		<dc:creator>Sonet</dc:creator>
		<pubDate>Fri, 11 Jun 2010 00:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-45585</guid>
		<description>Why not simply backup the logs? TRUNCATE_ONLY  has been removed for a reason. The problem with it is that it breaks the transaction log chain, which makes recovering to a point in time impossible. This should be avoided under all circumstances. Instead backup the database log:

BACKUP LOG DatabaseName TO DISK = N&#039;C:\Backup\DatabaseName_log.bak&#039;
GO

If you are still running out of space, perform log backups more frequently.</description>
		<content:encoded><![CDATA[<p>Why not simply backup the logs? TRUNCATE_ONLY  has been removed for a reason. The problem with it is that it breaks the transaction log chain, which makes recovering to a point in time impossible. This should be avoided under all circumstances. Instead backup the database log:</p>
<p>BACKUP LOG DatabaseName TO DISK = N&#8217;C:\Backup\DatabaseName_log.bak&#8217;<br />
GO</p>
<p>If you are still running out of space, perform log backups more frequently.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-42957</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 19 Apr 2010 16:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-42957</guid>
		<description>Obviously SQL 2008 disabled TRUNCATE_ONLY.  
Their workaround is to set Recovery Mode to Simple, do the DBCC SHRINKFILE, then set it back to Full.
This does not make SQL Server more secure at all - it just creates more work for the DBA.

What I want to know is, how to shrink that 37GB T-log file WITHOUT taking the database out of Full Recovery mode, and WITHOUT jeopardizing point-in-time restore.
I have a 24/7 OLTP system with lots of transactions.  The log file is going to grow and I don&#039;t have 2 TB of fast disk space to reserve for the logs.  So I need to reduce it without losing Point-In-Time recovery.

Any thoughts???</description>
		<content:encoded><![CDATA[<p>Obviously SQL 2008 disabled TRUNCATE_ONLY.<br />
Their workaround is to set Recovery Mode to Simple, do the DBCC SHRINKFILE, then set it back to Full.<br />
This does not make SQL Server more secure at all &#8211; it just creates more work for the DBA.</p>
<p>What I want to know is, how to shrink that 37GB T-log file WITHOUT taking the database out of Full Recovery mode, and WITHOUT jeopardizing point-in-time restore.<br />
I have a 24/7 OLTP system with lots of transactions.  The log file is going to grow and I don&#8217;t have 2 TB of fast disk space to reserve for the logs.  So I need to reduce it without losing Point-In-Time recovery.</p>
<p>Any thoughts???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liz</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-36031</link>
		<dc:creator>Liz</dc:creator>
		<pubDate>Fri, 06 Nov 2009 15:00:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-36031</guid>
		<description>Thank you - that&#039;s brilliant.</description>
		<content:encoded><![CDATA[<p>Thank you &#8211; that&#8217;s brilliant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dallas</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-34067</link>
		<dc:creator>Dallas</dc:creator>
		<pubDate>Thu, 10 Sep 2009 03:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-34067</guid>
		<description>truncate_only is no longer supported in sql server 2008.
See:
http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/d0958b81-8cfb-4b2b-8b5a-8e50c835f920</description>
		<content:encoded><![CDATA[<p>truncate_only is no longer supported in sql server 2008.<br />
See:<br />
<a href="http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/d0958b81-8cfb-4b2b-8b5a-8e50c835f920" rel="nofollow">http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/d0958b81-8cfb-4b2b-8b5a-8e50c835f920</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dude</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-33444</link>
		<dc:creator>dude</dc:creator>
		<pubDate>Thu, 20 Aug 2009 19:06:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-33444</guid>
		<description>Thanks! I just did this to a 80gb log file! everything&#039;s back to normal now :)</description>
		<content:encoded><![CDATA[<p>Thanks! I just did this to a 80gb log file! everything&#8217;s back to normal now <img src='http://blog.crankybit.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rasesh</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-33240</link>
		<dc:creator>Rasesh</dc:creator>
		<pubDate>Fri, 14 Aug 2009 17:41:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-33240</guid>
		<description>THANK YOU SOOOOO MUCH!!!</description>
		<content:encoded><![CDATA[<p>THANK YOU SOOOOO MUCH!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-32611</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Mon, 20 Jul 2009 21:10:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-32611</guid>
		<description>Dude, you are a genius. Thank you, thank you, thank you so much.</description>
		<content:encoded><![CDATA[<p>Dude, you are a genius. Thank you, thank you, thank you so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Praesagus</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-29673</link>
		<dc:creator>Praesagus</dc:creator>
		<pubDate>Tue, 12 May 2009 21:43:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-29673</guid>
		<description>You saved my life - thanks!</description>
		<content:encoded><![CDATA[<p>You saved my life &#8211; thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Administrator</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-27595</link>
		<dc:creator>Administrator</dc:creator>
		<pubDate>Sat, 04 Apr 2009 01:29:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-27595</guid>
		<description>Juls, I corrected your original comment and deleted the comment pointing out the correction. Thanks.</description>
		<content:encoded><![CDATA[<p>Juls, I corrected your original comment and deleted the comment pointing out the correction. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juls Briosos</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-27561</link>
		<dc:creator>Juls Briosos</dc:creator>
		<pubDate>Fri, 03 Apr 2009 04:57:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-27561</guid>
		<description>we were having this same problem today and this same solution did the trick! we were breaking our necks trying to shrink the database logs to no avail... I sure wish we saw this post a little earlier.. :P Thanks!!</description>
		<content:encoded><![CDATA[<p>we were having this same problem today and this same solution did the trick! we were breaking our necks trying to shrink the database logs to no avail&#8230; I sure wish we saw this post a little earlier.. <img src='http://blog.crankybit.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  Thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buba Rooni</title>
		<link>http://blog.crankybit.com/shrink-the-unshrinkable-sql-transaction-log/#comment-22838</link>
		<dc:creator>Buba Rooni</dc:creator>
		<pubDate>Tue, 11 Nov 2008 21:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.crankybit.com/?p=309#comment-22838</guid>
		<description>Perfect!  I&#039;ve had a db that wouldn&#039;t post any transaction the last few days, nothing I tried would shrink it and I had management breathing fire down my neck.

Your script did the trick!  

Thanks!</description>
		<content:encoded><![CDATA[<p>Perfect!  I&#8217;ve had a db that wouldn&#8217;t post any transaction the last few days, nothing I tried would shrink it and I had management breathing fire down my neck.</p>
<p>Your script did the trick!  </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

