Solved

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

Posted on 2010-09-15
3
550 Views
Last Modified: 2012-06-27
Hello:

   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#">
          SELECT
                HTMLCodeFormat(list_values)
            FROM
                art_idlist
            WHERE
                idlist_id = <cfqueryparam cfsqltype="cf_sql_varchar" value="#URL.id#" />
        </cfquery>

  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.

  Thanks!
0
Comment
Question by:henderxe
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
_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)
0
 

Author Closing Comment

by:henderxe
ID: 33685280
agx:

   Thank you very much!

   May seem small, but really big to me!

0
 
LVL 52

Expert Comment

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

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

816 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

9 Experts available now in Live!

Get 1:1 Help Now