2013-09-27 32 views
1

當我更新我的模型.edmx在Visual Studio 2012出現以下錯誤:錯誤:「內部」資源池中的系統內存不足以運行此查詢。 EF +的Visual Studio 2012

Unable to generate the model because of the following exception: 'An error occurred while executing the command definition. See the inner exception for details. There is insufficient system memory in resource pool 'internal' to run this query.

任何人都知道爲什麼嗎?模型中只有兩個簡單的表格?

+0

較舊的SQL服務器執行此操作。升級服務器(至少是SP版本)。 – Alex

回答

1

檢查資源調控器,看看它是否啓用。 這可能發生在資源調控器是啓用和資源池runnig。 設置資源管理器禁用。

1

更多信息就我而言,我使用EF與SqlExpress 2014時收到此錯誤。究其原因是因爲我的Sql節流的內存限制,以維護自己的計算機上RAM - 修復是簡單地increase the memory再次暫時:

sp_configure 'show advanced options', 1; 
GO 
RECONFIGURE; 
GO 
sp_configure 'max server memory', 1024; 
GO 
RECONFIGURE; 
GO 

然後重新啓動SqlServer服務。

+1

+1軼事。雖然我們這樣做,但我曾經看到SQL Server會這樣做,因爲通常缺乏系統內存。即某些其他過程正在給系統帶來極大的內存壓力。 –

相關問題