all groups > sql server odbc > april 2005 >
You're in the

sql server odbc

group:

ODBC 4,099 byte record limit??


ODBC 4,099 byte record limit?? Repo
4/11/2005 12:14:41 PM
sql server odbc:
I'm connecting to an Access DB through ODBC on a windows server from a PHP
page. The problem is the text retrieved from the select (nfo) is truncated
at
4,099 bytes everytime.

How to I get around this 4k limit?
I read about SET TEXTSIZE but I don't know how to use it in the script?

The full text is in the DB field so it is being truncated somewhere in the
ODBC.

PHP Script:
------------

$connect = odbc_connect("datab_nfo", "", "");
$query = "SELECT nfo FROM Titles where ID=15";
$result = odbc_exec($connect, $query);

while(odbc_fetch_row($result)){
$nfo = odbc_result($result, 1);
print("$nfo\n");
}


RE: ODBC 4,099 byte record limit?? LD
4/15/2005 1:35:02 PM
Look for these values in php.ini

; Valid range 0 - 2147483647. Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647. Default = 4096.
;mssql.textsize = 4096


[quoted text, click to view]
AddThis Social Bookmark Button