简体   繁体   English

打开Sql Server文件时出现System.OutOfMemoryException错误

[英]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.

相关问题 增加最大服务器内存以处理SQL Server上的System.OutOfMemoryException - Increasing max server memory to deal with System.OutOfMemoryException on SQL Server 尝试运行由SQL Server Management Studio生成的创建表脚本时出现System.OutOfMemoryException - System.OutOfMemoryException when trying to run a create table script generated by SQL Server Management studio “System.OutOfMemoryException: 'Out of memory.'”从 SQL 服务器读取图像时 - "System.OutOfMemoryException: 'Out of memory.'" when reading image from SQL Server SQL Server System.OutOfMemoryException +太多结果 - SQL Server System.OutOfMemoryException + too many outcomes 如何在SQL Server 2014中解决System.OutOfMemoryException - How to solve System.OutOfMemoryException in SQL Server 2014 查询大型SQL表时出现System.OutOfMemoryException - System.OutOfMemoryException when querying large SQL table 将SQL Server 2016升级到版本13.0.15700.28后,经常发生System.OutOfMemoryException - System.OutOfMemoryException occurs frequently after Upgrading SQL Server 2016 to version 13.0.15700.28 System.OutOfMemoryException:angularjs中抛出了类型'System.OutOfMemoryException'的异常 - System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown in angularjs 训练 ML.NET -- System.OutOfMemoryException - Training ML.NET -- System.OutOfMemoryException 使用localdb进行NUnit测试期间的System.OutOfMemoryException - System.OutOfMemoryException during NUnit tests with localdb
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM