最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

Thereisinsufficientsystemmemorytorunthisquery错误

来源:动视网 责编:小采 时间:2020-11-09 10:11:31
文档

Thereisinsufficientsystemmemorytorunthisquery错误

Thereisinsufficientsystemmemorytorunthisquery错误:服务器环境大致情况如下 : 操作系统: Microsoft Windows Server 2003 R2 Enterprise Edition Service Pack 2 数据库 : Microsoft SQL Server 2005 - 9.00.5000.00 (Intel X86) 。 机器物理内存8G,开启了使用AWE分配内存
推荐度:
导读Thereisinsufficientsystemmemorytorunthisquery错误:服务器环境大致情况如下 : 操作系统: Microsoft Windows Server 2003 R2 Enterprise Edition Service Pack 2 数据库 : Microsoft SQL Server 2005 - 9.00.5000.00 (Intel X86) 。 机器物理内存8G,开启了使用AWE分配内存


服务器环境大致情况如下 : 操作系统: Microsoft Windows Server 2003 R2 Enterprise Edition Service Pack 2 数据库 : Microsoft SQL Server 2005 - 9.00.5000.00 (Intel X86) 。 机器物理内存8G,开启了使用AWE分配内存选项(U)" 在这台服务器上,创建You

服务器环境大致情况如下:

操作系统: Microsoft Windows Server 2003 R2 Enterprise Edition Service Pack 2

数据库 : Microsoft SQL Server 2005 - 9.00.5000.00 (Intel X86) 。

机器物理内存8G,开启了“使用AWE分配内存选项(U)"

在这台服务器上,创建YourSQLDba后,配置过程中创建函数的时候,报如下错误,重试了几次都是如此,但是其它应用从来没有出过这个错误,而且这是一台生产服务器,很多应用在跑,所以这才是让我纳闷的地方:

消息 701,级别 17,香港虚拟主机,香港服务器,状态 13,过程 clr_GetFolderList,第 1 行

There is insufficient system memory to run this query.

消息 701,级别 17,状态 13,过程 clr_GetFolderListDetailed,第 1 行

There is insufficient system memory to run this query.

其实这两个函数也没特别之处,而且在其它64数据库上,也没有碰到过类似的错误。

CREATE FUNCTION yUtl.clr_GetFolderList (@FolderPath nvarchar(4000), @SearchPattern nvarchar(4000))

RETURNS TABLE ([FileName] nvarchar(255))

AS EXTERNAL NAME [YourSqlDba_ClrFileOp].[Clr_FileOperations.FileOpCs].[Clr_GetFolderList];

GO

CREATE FUNCTION yUtl.clr_GetFolderListDetailed (@FolderPath nvarchar(4000), @SearchPattern nvarchar(4000))

RETURNS TABLE ([FileName] nvarchar(255), [FileExtension] nvarchar(255), [Size] bigint, [ModifiedDate] datetime, [CreatedDate] datetime)

AS EXTERNAL NAME [YourSqlDba_ClrFileOp].[Clr_FileOperations.FileOpCs].[Clr_GetFolderListDetailed];

GO

网上搜索了一下,发现蛮多人也遇到个这个错误:,但是也没有一个定论。

于是也按那些人讨论的,检查服务器环境:物理内存,数据库版本,免备案空间,AWE是否开启,最大服务器内存,clr enabled 配置等等

sp_configure 'clr enabled'

name minimum maximum config_value run_value

----------------------------------- ----------- ----------- ------------ -----------

clr enabled 0 1 1 1

但是,折腾了很长时间,也没搞清真正的出错原因,没办法,只能祭出大杀器”重启SQL SERVER服务",然后重新创建YourSQLDba数据库,创建相关存储过程、函数等。暂时记录一下这个问题,等有空闲或下次遇到时候,再想想办法解决它。

文档

Thereisinsufficientsystemmemorytorunthisquery错误

Thereisinsufficientsystemmemorytorunthisquery错误:服务器环境大致情况如下 : 操作系统: Microsoft Windows Server 2003 R2 Enterprise Edition Service Pack 2 数据库 : Microsoft SQL Server 2005 - 9.00.5000.00 (Intel X86) 。 机器物理内存8G,开启了使用AWE分配内存
推荐度:
标签: 错误 error to
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top