[英]System.OutOfMemoryException error when I open the Sql Server file
I have a sql server file ( with the .sql format ) when I want open it with SQL Server Management Studio I see a error : 当我想用SQL Server Management Studio打开它时,我有一个sql server文件(使用.sql格式)我看到一个错误:
Exepction of type 'System.OutOfMemoryException' was trown “System.OutOfMemoryException”类型的删除被删除
how I solve this problem ? 我怎么解决这个问题?
TnQ TNQ
The problem you're facing is that the editor of SSMS (SQL Server Management Studio) isn't able to handle such large files, due to memory limitations of the UI (for this reason an OutOfMemory
exception is thrown). 您遇到的问题是SSMS(SQL Server Management Studio)的编辑器由于UI的内存限制而无法处理此类大型文件(因此会抛出
OutOfMemory
异常)。 Most probably, there are memory limitations related to syntax highlighting, Intellisense and so on. 最有可能的是,存在与语法高亮,Intellisense等相关的内存限制。
This problem is known, but I couldn't find anything related to the memory limitations in terms of UI while handling large script files (100MBytes and so on, for example). 这个问题是已知的,但在处理大型脚本文件时(例如,100MBytes等),我无法找到与UI相关的内存限制。 I found only this document, about the maximum capacity specifications .
我只找到了这份文件,关于最大容量规格 。
Anyway, you can run large scripts using the SQLCMD utility , executing this line in a command prompt: SQLCMD -S [Servername] -E -i [SQL Script]
无论如何,您可以使用SQLCMD实用程序运行大型脚本,在命令提示符中执行此行:
SQLCMD -S [Servername] -E -i [SQL Script]
您有以下几种选择:1)将RAM添加到服务器(!)2)检查分配给SQL Server的内存量3)增加系统设置中SWAP文件的大小
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.