當我試圖從一個11GB的文本文件填充表檔案(.tsv)我得到了錯誤:空數據庫超過10GB大小
Could not allocate space for object 'X' in database 'Y' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.
我認爲這個問題是數據庫超過10GB,which is the limit for SQL Express。然而,當我檢查時,我注意到數據庫實際上是空的。查詢
SELECT TOP 10 *
FROM Table
需要幾分鐘時間才能執行,它不會給我什麼。當我檢查屬性>文件時,我發現filegroup PRIMARY實際上是10240MB。
這是怎麼回事,如何解決這個問題?
該是查看DBCC方法並縮小數據庫的時候了。不過,這很奇怪。我曾經有過這樣的情況,一旦日誌文件已經達到50 GB左右並且不斷增長。 – ps2goat