SQL Server doesn't start after you configure the tempdb database to use a very small log file

Symptoms
Consider the following scenario:
  • You use Microsoft SQL Server 2012, 2014, or 2016.
  • You use the ALTER DATABASE … MODIFY FILE … statement to configure the tempdb database to use a new log file.
  • You specify the new log file size to be smaller than 248 KB.
  • You stop and then restart the instance of SQL Server to apply the change.

In this scenario, the instance of SQL Server does not start. Additionally, error messages that resemble the following are logged to the SQL Server error log:
Error: 9004, Severity: 21, State: 1.
An error occurred while processing the log for database 'tempdb'.  If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.


Error: 945, Severity: 14, State: 2.
Database 'tempdb' cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details.

Resolution
This problem was fixed in the following cumulative updates for SQL Server:


Note After you install this update and then start the instance of SQL Server, SQL Server expands the log file to the minimum required size. 
About cumulative updates for SQL Server
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
References
Learn about the terminology Microsoft uses to describe software updates.
Properties

Article ID: 3168709 - Last Review: 09/22/2016 03:40:00 - Revision: 3.0

Microsoft SQL Server 2014 Developer, Microsoft SQL Server 2014 Enterprise, Microsoft SQL Server 2014 Standard, Microsoft SQL Server 2012 Service Pack 3, Microsoft SQL Server 2012 Developer, Microsoft SQL Server 2012 Enterprise, Microsoft SQL Server 2012 Enterprise Core, Microsoft SQL Server 2012 Standard, Microsoft SQL Server 2016 Developer, Microsoft SQL Server 2016 Enterprise, Microsoft SQL Server 2016 Enterprise Core, Microsoft SQL Server 2016 Standard

  • kbqfe kbfix kbexpertiseinter kbsurveynew KB3168709
Feedback