2013-10-21 180 views
3

當我試圖從一個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。

這是怎麼回事,如何解決這個問題?

+0

該是查看DBCC方法並縮小數據庫的時候了。不過,這很奇怪。我曾經有過這樣的情況,一旦日誌文件已經達到50 GB左右並且不斷增長。 – ps2goat

回答

1

將11GB文本文件填充到SQL Server Express中會出現錯誤,因爲它會超出版本限制。您可以將文本文件分成2個文件或升級到標準版。或者嘗試Oracle XE?它存儲高達11GB :)可能對你來說已經足夠了。

相關問題