php - Fetch column with large data from SQL server -


i fetching column mssql table, data-type of ntext. when column null or has less data, script working properly, large data, truncates, without error or exception.

i using odbc_fetch_array, data result-set. have tried various solutions, none of them working.

$sql = "select top 40 v.vendorid, v.userid, v.companyname, v.contactname, v.email, v.address1, v.address2 ,v.city, v.zip, v.countryid, v.stateorregionid, v.phone, v.fax, v.website, convert(nvarchar(max),v.profile) profile,v.listorder,v.logo, v.logothumb, v.photos custom_vendor v order v.listorder ";  $rs = odbc_exec($conn, $sql);  if (!$rs) {exit(json_encode(array("error"=>"error in sql")));}  while( $row = odbc_fetch_array($rs) ) { ... } 

thanks


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -