SQL Server 2016: ALTER DATABASE SET AUTOGROW_SINGLE_FILE T-SQL Enhancement in SQL Server 2016
Related Topic: TSQL Enhancement in SQL Server 2016>
Next Topic: AUTOGROW_ALL_FILES
ALTER DATABASE SET AUTOGROW_SINGLE_FILE T-SQL Enhancement in SQL Server 2016
SQL Server 2016 introduces two new options to ALTER DATABASE statement which
can be used to modify database files namely AUTOGROW_SINGLE_FILE
and AUTOGROW_ALL_FILES. In the earlier versions of SQL Server
to achieve similar functionality you could use the trace flag 1117. This would
allow all the files of the database to auto grow at the same time if they are
configured files to auto grow.
One of the biggest disadvantages of using trace flag 1117 is that in the event of auto growth all the files of the database will grow. Since this trace flag is set at global level, all the databases residing on the SQL Server Instance will auto grow as per the relevant auto growth settings configured for each database file. This scenario would result in filling drive space faster.
AUTOGROW_SINGLE_FILE: This is the default option used when a database is created in SQL Server 2016. Whenever, AUTO GROWTH is triggered it will only grow the particular DATA or LOG file leaving behind rest of the files available within the file group at their respective size.
Example ALTER DATABASE SET AUTOGROW_SINGLE_FILE
ALTER DATABASE Adventureworks MODIFY FILEGROUP [PRIMARY] AUTOGROW_SINGLE_FILE GO
• ALTER DATABASE SET AUTOGROW_ALL_FILES T-SQL Enhancement in SQL Server 2016
• COMPRESS and DECOMPRESS T-SQL Enhancement in SQL Server 2016
• STRING_SPLIT and STRING_ESCAPE T-SQL Enhancement in SQL Server 2016
• SERVERPROPERTY T-SQL Enhancement in SQL Server 2016
• TRUNCATE TABLE WITH PARTITIONS T-SQL Enhancement in SQL Server 2016
Thank you for taking your time to read
this article. Let's be Connected....
Click the Next Page button to continue reading about New T-SQL enhancements in SQL Server 2016 and click on the Previous Page button to revise the previouly read topic.
- How to Identify CPU Bottlenecks in SQL Server Using Performance Counters
- Time required to complete database backup and restore in SQL Server
- How to Export records from SQL Server to Text File using BCP
- Identify Deadlocks Using Graphical Deadlock Chain Event in SQL Server Profiler
- How to connect to a named instance of SQL Server?
- How to Synchronize Analysis Services Database Using Synchronize Database Wizard in SSMS
- Update Statistics for all databases in SQL Server
- How to Attach SSAS Database in SQL Server
- How to Rename SQL Server Stand Alone Instance After Installing SQL Server
Last Updated On: May 13, 2016
Please leave your Valuable Comment or Let us know how this article helped you: