事件標識碼 1814 和 SQL Server 未啟動
適用于:SQL Server
徵狀
如果 Microsoft SQL Server 服務無法在啟動期間建立 Tempdb 檔案,當您使用 Service Control Manager 時,服務不會啟動,而且您會收到下列錯誤訊息:
Windows 無法在本機計算機上啟動 SQL Server (MSSQLSERVER) 。 如需詳細資訊,請檢閱系統事件記錄檔。
如果這是非 Microsoft 服務,請連絡服務廠商,並參閱服務特定錯誤碼 1814。
原因
這個問題可能會因為下列原因而發生:
- 已移除裝載Tempdb的硬碟,或因故變更驅動器號。
- OS 層有空間條件約束。
解決方案
開啟應用程式記錄檔,並確認您看到類似下列的錯誤訊息專案:
Log Name: Application Source: MSSQLSERVER Date: <Datetime> Event ID: 5123 Task Category: Server Level: Error Keywords: Classic User: N/A Computer: <Server name> Description: CREATE FILE encountered operating system error 3(The system cannot find the path specified.) while attempting to open or create the physical file <FilePath>. Log Name: Application Source: MSSQLSERVER Date: <Datetime> Event ID: 17204 Task Category: Server Level: Error Keywords: Classic User: N/A Computer: <Server name> Description: FCB::Open failed: Could not open file <FilePath> for file number 1. OS error: 3(The system cannot find the path specified.). Log Name: Application Source: MSSQLSERVER Date: <Datetime> Event ID: 1814 Task Category: Server Level: Information Keywords: Classic User: N/A Computer: <Server name> Description: Could not create tempdb. You may not have enough disk space available. Free additional disk space by deleting other files on the tempdb drive and then restart SQL Server. Check for additional errors in the operating system error log that may indicate why the tempdb files could not be initialized.
若要解決此問題,請使用移動系統資料庫之失敗復原程式一節中所述的程式,將Tempdb檔案移至不同的位置。
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應