Deploying SSDT project through Powershell Script: Version store out of memory error

我的梦境 提交于 2019-12-11 06:07:13

问题


Hoping someone may be able to advise what might be happening here. I am attempting to run an SSDT deployment via a Powershell script directly on the SQL Server its-self.

SQL Version: 2012 (upgrade not possible at the moment)

Exact error:

System.Management.Automation.MethodInvocationException: Exception calling "GenerateDeployScript" with "3" argument(s): "Version store out of memory (cleanup already attempted)" Microsoft.Isam.Esent.Interop.EsentVersionStoreOutOfMemoryException: Version store out of memory (cleanup already attempted)

All my research on the web has solutions for when this occurs through MSBuild, however I have no-where to apply the fix for this process as it happens outside of the build process.

Can anyone advise how one might prevent this from occuring? Thanks :)


回答1:


Try building with the MSBuild argument /p:CmdLineInMemoryStorage=true. This seems to have fixed this same issue for others running into this problem.

I have implemented the fix in my Azure DevOps Pipeline build for a database process that has also randomly had this error, and so far it seems to be working.

See also:

SO question: DB Schema Compare Error: 'Version Store Out of Memory'



来源:https://stackoverflow.com/questions/51936476/deploying-ssdt-project-through-powershell-script-version-store-out-of-memory-er

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!