SQL Server 2008 returns "Memory limit of 10240 KB exceeded for buffered query"
Change the setting in php.ini.
Section: sqlsrv
Directive: sqlsrv.ClientBufferMaxKBSize.
add two lines in php.ini
extension=php_pdo_sqlsrv_55_ts.dll
extension=php_sqlsrv_55_ts.dll
client_buffer_max_kb_size = '50240'
sqlsrv.ClientBufferMaxKBSize = 50240