SQL Server 2008 returns quot;Memory limit of 10240 KB exceeded for buffered queryquot;(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 的内存限制".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:SQL Server 2008 返回“缓冲查询超出 10240 KB 的内存限制".


- 没有作曲家的 PSR4 自动加载 2022-01-01
- 如何定位 php.ini 文件 (xampp) 2022-01-01
- 从 PHP 中的输入表单获取日期 2022-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- PHP Count 布尔数组中真值的数量 2021-01-01
- 正确分离 PHP 中的逻辑/样式 2021-01-01
- 带有通配符的 Laravel 验证器 2021-01-01
- Mod使用GET变量将子域重写为PHP 2021-01-01
- SoapClient 设置自定义 HTTP Header 2021-01-01
- Laravel 仓库 2022-01-01