?
Solved

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

Posted on 2010-09-15
3
Medium Priority
?
554 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 2000 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

777 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