SQL Server 2008返回“超过10240 KB的内存限制以进行缓冲查询". [英] SQL Server 2008 returns "Memory limit of 10240 KB exceeded for buffered query"

查看:391
本文介绍了SQL Server 2008返回“超过10240 KB的内存限制以进行缓冲查询".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用一些SQL Server 2008 r2数据填充HTML表,控制器(php_sqlsrv)可以正常工作,表填充得很好,但是当我尝试检索2000行或更多行(可能更少)时,它崩溃并显示此消息:

I'm trying to fill a HTML table with some SQL Server 2008 r2 data, the controller (php_sqlsrv) works fine, the tables are filled very well, but when I try to retrieve a 2000 or more rows (maybe less) it crashes and shows this message:

SQL错误:数组([0] =>数组([0] => IMSSP [SQLSTATE] => IMSSP [1] => -59 [code] => -59 [2] =>内存限制10240缓冲的查询超出了KB [消息] =>缓冲的查询超出了内存限制10240 KB))

SQL Error: Array ( [0] => Array ( [0] => IMSSP [SQLSTATE] => IMSSP [1] => -59 [code] => -59 [2] => Memory limit of 10240 KB exceeded for buffered query [message] => Memory limit of 10240 KB exceeded for buffered query ))

我该如何解决?这是PHP还是sqlsrv问题?我可以从SQL Server Management Studio中解决此问题吗?

How can I fix this? Is this a PHP or a sqlsrv problem? Can I fix this from the SQL Server Management Studio?

推荐答案

更改php.ini中的设置.

Change the setting in php.ini.

部分:sqlsrv

指令:sqlsrv.ClientBufferMaxKBSize.

Directive: sqlsrv.ClientBufferMaxKBSize.

这篇关于SQL Server 2008返回“超过10240 KB的内存限制以进行缓冲查询".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆