Microsofts PHP-driver (til reference):http://www .microsoft.com/en-us/download/details.aspx?id=20098
Men hvis du ikke vil (eller kan) ændre drivere, fra dette websted :
You need to increase the maximum size of a text column to be returned from
SQL Server by PHP. You can do this with a simple SQL query:
SET TEXTSIZE 2147483647
Which you can run with the following PHP (best run just after you make a
connection).
mssql_query("SET TEXTSIZE 2147483647");
A better way to work around the issue is to change the "textlimit" and
"textsize" settings within php.ini, like so:
mssql.textlimit = 2147483647
mssql.textsize = 2147483647
Din MSSQL-driver afkorter teksten. Hvis du ikke kan ændre datatyper, drivere osv., burde dette løse problemet for dig.