Coldfusion 8 query not reading all (or truncating) results from table

Posted on 2010-09-15
Last Modified: 2012-06-27

   I running a pretty simple query below that returns 64000 characters, even though there are 383647 characters in the table.   I don't receive any errors.

  <cfquery name="getIDListQuery" datasource="#dbName#" username="#dbUserName#" password="#dbPassword#">
                idlist_id = <cfqueryparam cfsqltype="cf_sql_varchar" value="" />

  If the character count is less than 64000, then it processes fine, but anything over 64000 gets truncated.

  NOTE:  I've switched between "integer" and "varchar" with no change in the results.

  Any assistance appreciated.

Question by:henderxe
  • 2
LVL 52

Accepted Solution

_agx_ earned 500 total points
ID: 33684334
You need to enable CLOB fields in the datasource. Otherwise CF will limit the results to 64K.

CF Administrator => Select the datasource => Advance settings
Check Enable long text retrieval (CLOB)

Author Closing Comment

ID: 33685280

   Thank you very much!

   May seem small, but really big to me!

LVL 52

Expert Comment

ID: 33689691
You're welcome.  It drove me nuts until I figured it out that 1st time too :)

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IIS 7.5 to 8.0 6 100
Coldfusion : Unix Epoch Time 4 30
Fixing Old Legacy Code 1 26
IIS Authorization for Web Service 2 22
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now