liveBook · Manning

AUTOGROW_ALL_FILES

As explained in 100 SQL Server Mistakes and How to Avoid Them

AUTOGROW_ALL_FILES is a SQL Server filegroup option that causes all files in the filegroup to grow when one file reaches its growth threshold.

Mistake: assuming equal file growth still requires trace flag 1117. Use AUTOGROW_ALL_FILES for database-specific control; it overrides the default AUTOGROW_SINGLE_FILE behavior. section 10.1 section 10.14

MarketingArchive filegroup configuration

Apply the option to the PRIMARY filegroup with ALTER DATABASE. The same configuration can also be performed through Desired State Configuration. section 10.1

Listing 10.2 Turning off equal file growth and uniform extents
ALTER DATABASE MarketingArchive 
   MODIFY FILEGROUP [PRIMARY] AUTOGROW_ALL_FILES ;

ALTER DATABASE MarketingArchive
   SET MIXED_PAGE_ALLOCATION ON ;

Shows the T-SQL command that enables equal file growth for the MarketingArchive PRIMARY filegroup. section 10.1

How 100 SQL Server Mistakes and How to Avoid Them covers it

How deep it goes
Defines the option, contrasts it with AUTOGROW_SINGLE_FILE, and demonstrates its ALTER DATABASE syntax without detailing growth internals.
Examples
Uses the MarketingArchive database and its PRIMARY filegroup as the concrete configuration example.
What you can do after
Apply it via ALTER DATABASE to enable equal file growth for a chosen filegroup.
How it connects
Connects equal file growth with trace flags, mixed extents, uniform extents, and Desired State Configuration.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of 100 SQL Server Mistakes and How to Avoid Them. The section links point to the parts of the book it draws on.