In this article, we will be discussing about the main TempDB enhancements in SQL Server 2016 (and later) installation process.
About the SQL Server TempDB System Database
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 that illustrates the TempDB configuration dialog:
Strengthen your SQL Server Administration Skills – Enroll to our Online Course!
Check our online course on Udemy titled “Essential SQL Server Administration Tips” (special limited-time discount included in link).
Via the course, you will learn essential hands-on SQL Server Administration tips on SQL Server maintenance, security, performance, integration, error handling and more. Many live demonstrations and downloadable resources included!
Featured Online Courses:
- Boost SQL Server Database Performance with In-Memory OLTP
- Essential SQL Server Administration Tips
- SQL Server Fundamentals – SQL Database for Beginners
- Essential SQL Server Development Tips for SQL Developers
- The Philosophy and Fundamentals of Computer Programming
- .NET Programming for Beginners – Windows Forms with C#
- Introduction to SQL Server Machine Learning Services
- Introduction to Azure SQL Database for Beginners
- SQL Server 2019: What’s New – New and Enhanced Features
- Entity Framework: Getting Started – Complete Beginners Guide
- How to Import and Export Data in SQL Server Databases
- Learn How to Install and Start Using SQL Server in 30 Mins
- A Guide on How to Start and Monetize a Successful Blog
Read Also:
- SQL Server Installation and Setup Best Practices
- The TempDB System Database in SQL Server
- SQL Server 2016: TempDB Enhancements
- tempdb growth
- Introduction to SQL Server Machine Learning Services
- Essential SQL Server Administration Tips
- …more
Check our other related SQL Server Administration articles.
Subscribe to our newsletter and stay up to date!
Check out our latest software releases!
Check out our eBooks!
Rate this article:
Reference: SQLNetHub.com (https://www.sqlnethub.com)
© SQLNetHub
Artemakis Artemiou is a seasoned Senior Database and AI/Automation Architect with over 20 years of expertise in the IT industry. As a Certified Database, Cloud, and AI professional, he has been recognized as a thought leader, earning the prestigious Microsoft Data Platform MVP title for nine consecutive years (2009-2018). Driven by a passion for simplifying complex topics, Artemakis shares his expertise through articles, online courses, and speaking engagements. He empowers professionals around the globe to excel in Databases, Cloud, AI, Automation, and Software Development. Committed to innovation and education, Artemakis strives to make technology accessible and impactful for everyone.