Free up space in mdf

Marco Bakker | DBA.nl 72 Reputation points
2024-11-19T15:41:56.54+00:00

Hi guys,

When I want to shrink a databasefile I do see there is approx 90% of free space and when I start the shrink it doesn't do anything.

When I want to shrink the database I do see no free space.

Can somebody explain this to me?

kr

Marco

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,062 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 112.8K Reputation points MVP
    2024-11-21T22:10:42.96+00:00

    If you are now down to 3% of unused space in the database, very likely the database will grow soon, unless this is an archive database to which no further updates will be performed.

    In any case, there is no reason to try to shrink more.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.