question

sczarnomski avatar image
sczarnomski asked

Understanding Available Free Space on the Shrink Database Screen

On the shrink database screen there is a value for available free space. Yesterday it read 2%. I ran a shrink database and the value turned to 0%. What does available free space on this screen represent.
space
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Blackhawk-17 avatar image
Blackhawk-17 answered
Essentially it represents how much space there is above and beyond data. Space that can presumably be removed during a shrink operation and returned to the file system.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

TimothyAWiseman avatar image
TimothyAWiseman answered
Greg is completely right. But another way of looking at it that might be useful is: The free space represents how much more data can be added before the database will have to either autogrow or return errors for lack of space.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Tim avatar image
Tim answered
Make sure you know do some index maintenance to repair all the fragmentation you did with removing the 2% of free space. Greg and and Tim are 100% correct. It is the amount of free space in the file for additional data. You typically want this unless it is a read only database. You typically don't want the data file to auto grow unless you have instant file initialization on as this causes performance issue when the data file has to grow. Depending on the size of the database 2% isn't a great deal. My low water mark is 5% for most of my databases. It really all depends on growth patterns.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sczarnomski avatar image
sczarnomski answered
Thanks to everyone who responded. This was very helpful. I thought it might be something like that!
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.