DB Schema比较错误:'版本存储器内存不足'

时间:2014-10-22 15:37:57

标签: sql-server database visual-studio schema ssms

下面是我在Visual Studio 2013 Professional w / Update 3中进行架构比较时收到的错误。我使用的是版本2008 R2数据库服务器,我正在使用SSMS 2014.

这个错误持续了几个星期不断出现的频率越来越高。所以我重新格式化了我的机器......猜猜是什么......一旦重新设置完毕,我又收到了错误!

请帮助我了解我可以采取哪些措施来解决此问题。谢谢!


Microsoft.Isam.Esent.Interop.EsentVersionStoreOutOfMemoryException
Version store out of memory (cleanup already attempted)

   at Microsoft.Isam.Esent.Interop.Api.Check(Int32 err)
   at Microsoft.Isam.Esent.Interop.Api.JetDelete(JET_SESID sesid, JET_TABLEID tableid)
   at Microsoft.Data.Tools.Schema.SchemaModel.ModelStore.EseResultSet.Delete()
   at Microsoft.Data.Tools.Schema.SchemaModel.ModelStore.EseCommand.<>c__DisplayClass1b2.<DeleteRows>b__1b1(EseResultSet rs)
   at Microsoft.Data.Tools.Schema.SchemaModel.ModelStore.EseCommand.RunQueryImpl(Func1 stopProcessing, Action1 action, Object[] keys)
   at Microsoft.Data.Tools.Schema.SchemaModel.ModelStore.EseCommand.DeleteRows(Object[] keys)
   at Microsoft.Data.Tools.Schema.SchemaModel.ModelStore.CoreDelete(ModelElement element, IList1 elementsToSignal)
   at Microsoft.Data.Tools.Schema.SchemaModel.ModelStore.DeleteElement(ModelElement element, Boolean includeHierarchical)
   at Microsoft.Data.Tools.Schema.SchemaModel.ModelElement.Delete(Boolean deleteHierarchicalChildren)
   at Microsoft.Data.Tools.Schema.SchemaModel.DataSchemaModel.UnloadExternals(String fileName)
   at Microsoft.Data.Tools.Schema.SchemaModel.DataSchemaModel.OnCustomDataRemoved(CustomSchemaData customData)
   at Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlSchemaModel.OnCustomDataRemoved(CustomSchemaData customData)
   at Microsoft.Data.Tools.Schema.SchemaModel.DataSchemaModel.RemoveCustomData(CustomSchemaData customData)
   at Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlModelBuilder.Clear(CustomSchemaData dataToDelete)
   at Microsoft.Data.Tools.Schema.SchemaModel.ModelBuilder.AddOrUpdate(CustomSchemaData customSchemaData)
   at Microsoft.Data.Tools.Schema.Utilities.Sql.Jobs.ModelBuilderJob.RunImpl()
------ Exception Data --------
Key : error
Value : VersionStoreOutOfMemory

2 个答案:

答案 0 :(得分:3)

我自己搜索过解决方案,但从未在网上找到任何有用的信息。在做了一些实验后,我发现了一个设置更改,允许我比较和编译我非常顽固的项目。我进入了SqlProj项目的属性,直到&#34; SQLCLR Build&#34;选项卡并单击&#34;高级...&#34;按钮。在输出部分,我更改了&#34;调试信息&#34;下拉列表是&#34; pdb-only&#34;。这对我来说有所改善,但我仍然偶尔会遇到崩溃。

答案 1 :(得分:0)

我经常在TeamCity的数据库构建中看到这个问题。根据本文https://connect.microsoft.com/SQLServer/feedback/details/749108/msbuild-fails-randomly-with-version-store-out-of-memory-cleanup-already-attempted-errors-msb4018的建议,我已经使用附加参数 / p:CmdLineInMemoryStorage = true 配置了MSBuild命令。 现在,构建过程似乎更可靠。

相关问题