note 47387 added to function.odbc-exec

From: Date: Sun, 14 Nov 2004 22:20:36 +0000
Subject: note 47387 added to function.odbc-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-80525@lists.php.net to get a copy of this message
I kept getting FATAL: emalloc() errors when using select statements via odbc for MS SQL. I had no control over the DB as it is a commercial CRM system. I found that by 1st issuing an SQL query of "set textsize 9999;' within my PHP script is has resolved the issue.. I am running PHP 3.x on a Windows 2000 server that is patched to the max, I spent hours on this one trying diferent ODBC drivers etc and this simple SQL resolved the issue. ---- Manual Page -- http://www.php.net/manual/en/function.odbc-exec.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47387 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47387&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47387&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47387&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47387&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47387&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47387&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47387&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#80525) next »