TempDB Enhancements in SQL Server 2016 (and later)

TempDB Enhancements in SQL Server 2016 (and later)

TempDB Enhancements in SQL Server 2016 (and later)

TempDB system database plays a major role when it comes to performance in SQL Server. TempDB is available to all users connected to a SQL Server instance and it is used to hold local or global temporary tables, temporary stored procedures, table variables and cursors.


The Importance of the TempDB SQL Server System Database

Another example of when TempDB is used, is when you make use of the ‘SORT_IN_TEMPDB‘ option when you create or rebuild an index. This option tells SQL Server’s Database Engine to store the intermediate sort results that are used to build the index in the TempDB system database.

For all the above, and more, properly configuring the TempDB database plays a significant role to SQL Server’s performance.


TempDB Enhancements in SQL Server 2016

Until SQL Server 2014, you would usually install the SQL Server instance and then tune the TempDB database after installation.
SQL Server 2016 or later now provides you with the capability of configuring the TempDB database during the installation of a SQL Server instance along with some other other enhancements. These are:

    • All files will grow at the same time (no need for Trace flags 1117 and 1118)
    • By default Setup adds as many tempDB Files as the CPU count (max=8)
    • Through Setup you can specify:
      • No. of tempdb database files, initial size, autogrowth and directory placement (you can set multiple volumes for tempDB database files)
      • Initial size of log file, autogrowth and directory placement

The above assist the DBA to properly configure the TempDB system database faster and simpler during the setup of SQL Server, thus ensuring a performant tempDB configuration.

Below you can find a screenshot taken during the installation of SQL Server 2016 (CTP 3.0) that illustrates the TempDB configuration dialog:


TempDB Enhancements in SQL Server 2016 (and later) - Article on SQLNetHub


Did you find this article useful and interesting? Feel free to leave your comment!

If you enjoy my SQL Server administration tips and articles, I have something special just for you. It is one of my eBooks and it is called “Administering SQL Server“. Check it out!

Subscribe to our newsletter and stay up to date with our latest articles on SQL Server and related technologies!

Check out our latest software releases! All our software tools have 30-day Trial Versions which are free to download.


Rate this article: 1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)


Reference: SQLNetHub.com (https://www.sqlnethub.com)

© SQLNetHub

Artemakis Artemiou
Artemakis Artemiou is a Senior SQL Server Architect, Author, and a 9 Times Microsoft Data Platform MVP (2009-2018). He has over 15 years of experience in the IT industry in various roles. Artemakis is the founder of SQLNetHub and TechHowTos.com. Artemakis is the creator of the well-known software tools Snippets Generator and DBA Security Advisor. Also, he is the author of many eBooks on SQL Server. Artemakis currently serves as the President of the Cyprus .NET User Group (CDNUG) and the International .NET Association Country Leader for Cyprus (INETA). Artemakis's official website can be found at aartemiou.com.