Not getting all the ntext data when I select on that field

Hello all,

I've got a column of type ntext (length is 16 if that matters).  I'm selecting it, but all the data is not being returned to my query.  

Normally this column contains long descriptions (not crazy long, maybe in the hundreds of characters at the most).

I have a simple Access front end which displays this text in it's entirety just fine, but when I "select columnName from table for xml raw" I'm getting back incomplete data in the Query Analyzer for those rows where the description is longer than 100 characters or so (haven't counted).

I need to get XML output from the query containing complete data so I can use the XML downstream.
 How can I get complete data?

Thanks for any hints!
Who is Participating?
ispalenyConnect With a Mentor Commented:
From BOL:
SET TEXTSIZE { number }
Setting SET TEXTSIZE affects the @@TEXTSIZE function.
The SQL Server ODBC driver and Microsoft OLE DB Provider for SQL Server automatically set TEXTSIZE to 2147483647 when connecting.

In QA, by default text column is limited to 256 characters. Increase to 8192 on Resuls tab of Options.
Guy Hengel [angelIII / a3]Billing EngineerCommented:
>I've got a column of type ntext (length is 16 if that matters).
note: the 16 is only the (fixed) size of the pointer, not of the data.
text/ntext are stored outside the actual row data, and hence do not count as such for the row length.

for the rest, ispaleny has given a good hint (points to him if that solved the trouble)
vlgAuthor Commented:
Thanks to you both.  

FWIW, both tweaks were required in this case.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.