// SQL Server 錯誤參考

SQL Server 錯誤 1101:無法配置新的頁面

SQL Server 需要在檔案群組中配置新的頁面,但每個資料檔案都已滿且無法成長。請釋放磁碟空間,或讓檔案成長。

錯誤號碼
1101
嚴重性
17
類別
記憶體、記錄與儲存
錯誤訊息
Could not allocate a new page for database '%.*ls' because the '%.*ls' filegroup is full due to lack of storage space or database files reaching the maximum allowed size. Note that UNLIMITED files are still limited to 16TB. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.

它的意義

當 SQL Server 無法在檔案群組中配置新頁面時,就會引發錯誤 1101:所有檔案都已滿——可能是停用了自動成長、已達大小上限,或磁碟空間不足。它是錯誤 1105 的頁面層級對應版本,解決方法也相同。

常見原因

  • 停用自動成長的資料檔案或 MAXSIZE 已達上限。
  • 磁碟已滿。
  • SQL Server Express 的 10 GB 資料庫限制。

如何修正

  1. 檢查檔案,以及磁碟區的使用程度。

    SELECT f.name, f.size / 128 AS size_mb, vs.available_bytes / 1048576 AS disk_free_mb
    FROM sys.database_files AS f
    CROSS APPLY sys.dm_os_volume_stats(DB_ID(), f.file_id) AS vs;
  2. 允許成長或新增檔案,做法比照錯誤 1105。

    ALTER DATABASE SalesDb MODIFY FILE (NAME = SalesDb_data, MAXSIZE = UNLIMITED);

相關錯誤

更多記憶體、記錄和儲存錯誤

程式碼和訊息文字來自 Microsoft 資料庫引擎事件和錯誤參考。瀏覽完整的 SQL Server 錯誤清單 或 搜尋每個資料庫錯誤.

// 錯誤更少,修復更快

在 SQLly 裡操作 SQL Server

適用於 macOS、Windows 和 Linux 的原生 SQL 客戶端,具備結構描述感知的 IntelliSense、高風險陳述式防護與清楚的錯誤訊息,適用於 SQL Server 和你使用的其他資料庫。