<?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>Knowledge Base &#187; Microsoft SQL Server</title>
	<atom:link href="http://kb.philross.co.uk/tag/microsoft-sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://kb.philross.co.uk</link>
	<description></description>
	<lastBuildDate>Tue, 26 Aug 2008 11:07:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Truncating SQL Server Log Files</title>
		<link>http://kb.philross.co.uk/2007/09/10/truncating-sql-server-log-files/</link>
		<comments>http://kb.philross.co.uk/2007/09/10/truncating-sql-server-log-files/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 09:33:29 +0000</pubDate>
		<dc:creator>Phil</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>

		<guid isPermaLink="false">http://kb.philross.co.uk/2007/09/10/truncating-sql-server-log-files/</guid>
		<description><![CDATA[SQL Server logs in a circular fashion to its transaction log files. To shrink a transaction log file it is first necessary to backup the log.
The following script backs the log up, throwing away the backup in the process and then shrinks the files in the database. Make sure you have a full backup of [...]]]></description>
			<content:encoded><![CDATA[<p>SQL Server logs in a circular fashion to its transaction log files. To shrink a transaction log file it is first necessary to backup the log.</p>
<p>The following script backs the log up, throwing away the backup in the process and then shrinks the files in the database. Make sure you have a full backup of the database before running.</p>
<p><code>declare @db varchar(50)<br />
set @db = DB_NAME()</code></p>
<p><code>backup log @db with truncate_only<br />
dbcc shrinkdatabase (@db, truncateonly)</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.philross.co.uk/2007/09/10/truncating-sql-server-log-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
