SQL Server service (MSSQLSERVER) Fails to Start

摘要: The Microsoft SQL Server service (MSSQLSERVER) may fail to start due to a corrupt database. This article illustrates the process of troubleshooting this issue.

本文适用于 本文不适用于 本文并非针对某种特定的产品。 本文并非包含所有产品版本。

症状

The Microsoft SQL Server service (MSSQLSERVER) fails to start. Error 7024 (source: Service Control Manager) appears in the System event log of the server where SQL is installed.

原因

This service may fail to start for multiple reasons, and this article addresses one: a corrupt database.

解决方案

When any service fails to start, the Service Control Manager logs an error in the System event log of the server hosting that service. This event (ID 7024 in this case) may or may not provide enough detail to troubleshoot the issue. When troubleshooting an issue with the SQL Server service, the SQL error log likely contains more useful information.

To locate the SQL error log, follow these steps:
  1. Launch SQL Server Configuration Manager.
  2. Select SQL Server Services in the left pane.
  3. In the center pane, right-click SQL Server (MSSQLSERVER) and select Properties.
  4. In the properties window, select the Startup Parameters tab.
  5. In the Existing parameters field, the entry beginning with -e contains the path to the error log.
In File Explorer, browse to the path given above. The ERRORLOG file with no extension is the current error log. (ERRORLOG files with numeric extensions are older logs.) Open the current log file in Notepad and scroll to the end of the file. The last entry in the log should be an error indicating the reason for the service failure.

An error similar to this can indicate a corrupt database:

SQL Server detected a logical consistency-based I/O error: Incorrect checksum

The error message also indicates which database experienced the problem. There are three system databases required for SQL services to start: the master database, the model database, and tempdb. The error most likely mentions one of these databases.

If corruption in the master database is the cause, restoring that database from a backup is the recommended solution.

If corruption in the model database is the cause, a repair procedure can be found in SQL Server Model Database Repair.

The tempdb database is re-created every time the SQL Server service starts, if the model database is intact.

其他信息

See this video for a demonstration:

You can also view this video on YouTube.

受影响的产品

Prosupport for Microsoft Software
文章属性
文章编号: 000223030
文章类型: Solution
上次修改时间: 23 1月 2025
版本:  3
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。