Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.06 KB

set-the-auto-shrink-database-option-to-off.md

File metadata and controls

29 lines (21 loc) · 1.06 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
Set the AUTO_SHRINK Database Option to OFF
Set the AUTO_SHRINK Database Option to OFF.
VanMSFT
vanto
12/15/2023
sql
security
reference
Best Practices [Database Engine]

Set the auto_shrink database option to off

[!INCLUDE SQL Server]

This rule checks whether the AUTO_SHRINK database option is set to OFF. Frequently shrinking and expanding a database can lead to physical fragmentation.

Best practices recommendations

Set the AUTO_SHRINK database option to OFF. If you know that the space that you're reclaiming won't be needed in the future, you can reclaim the space by manually shrinking the database.

For more information

Microsoft Knowledge Base article 315512

Related content