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.
相关文章