<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Shrink on Rudi Bruchez</title><link>https://www.pachadata.com/en/tags/shrink/</link><description>Recent content in Shrink on Rudi Bruchez</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 28 Aug 2026 16:31:38 +0200</lastBuildDate><atom:link href="https://www.pachadata.com/en/tags/shrink/index.xml" rel="self" type="application/rss+xml"/><item><title>A complete guide to SHRINK in SQL Server</title><link>https://www.pachadata.com/en/docs/howtos/database-maintenance/shrink-database-file/</link><pubDate>Fri, 13 Feb 2026 00:00:00 +0000</pubDate><guid>https://www.pachadata.com/en/docs/howtos/database-maintenance/shrink-database-file/</guid><description>&lt;div class="alert alert-success" role="alert"&gt;&lt;div class="h4 alert-heading" role="heading"&gt;TL;DR&lt;/div&gt;&#10;&lt;p&gt;A shrink is a &lt;strong&gt;manual, one-off&lt;/strong&gt; operation, never automated and never scheduled.&#10;Always use &lt;code&gt;DBCC SHRINKFILE&lt;/code&gt; on a specific file, never &lt;code&gt;DBCC SHRINKDATABASE&lt;/code&gt;.&#10;On large files, shrink in small increments rather than in one go.&#10;The operation never corrupts the database: SQL Server is dependable here.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;h2 id="when-should-you-shrink"&gt;When should you shrink?&lt;/h2&gt;&#10;&lt;p&gt;Shrinking is discouraged as a general rule.&#10;It is an expensive operation that &lt;strong&gt;fragments indexes heavily&lt;/strong&gt;.&#10;&lt;a href="https://www.sqlskills.com/about/paul-s-randal/"&gt;Paul Randal&lt;/a&gt;, who wrote the SHRINK command in SQL Server 2005, explains it in detail: &lt;a href="https://www.sqlskills.com/blogs/paul/why-you-should-not-shrink-your-data-files/"&gt;Why you should not shrink your data files&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>