note 48918 added to function.mssql-query
| From: | warwick dot barnes at aad dot gov dot au | Date: | Wed, 12 Jan 2005 00:13:51 +0000 |
| Subject: | note 48918 added to function.mssql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-83111@lists.php.net to get a copy of this message | ||
Using PHP 4.3.9 and MSSQL Library 7.0, when I try to SELECT text from a column (field) defined as
VARCHAR 8000 I get only the first 255 characters of the text - it's trucated for no apparent
reason.
To get round this I changed the column type from VARCHAR 8000 to TEXT, but then the output was
trucated to 4096 characters.
To fix this I changed two values in PHP.INI:
mssql.textlimit = 16384
mssql.textsize = 16384
Now my text is trucated to 16384 characters, which is big enough for me - but you can apparently use
a value as large as 2147483647.
----
Manual Page -- http://www.php.net/manual/en/function.mssql-query.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48918
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48918&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48918&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48918&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48918&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48918&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48918&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48918&report=yes
Search -- http://master.php.net/manage/user-notes.php