13/11/2022
What’s So Bad About Shrinking Databases with DBCC SHRINKDATABASE?
You read a lot of advice that says you shouldn’t shrink databases, but…why? To demonstrate, I’m going to: Create a database Create a ~1GB table with 5M rows in it Put a clustered index on it, and check its fragmentation Look at my database’s empty space Shrink the database to get rid of the ...