开发者

CF Query appears to return incomplete data from text field

开发者 https://www.devze.com 2022-12-09 19:25 出处:网络
I\'m usingCF8 and SQL2000.I\'m sto开发者_运维技巧ring a bunch of HTML in a Text field in my SQL table.When I do a simple CFQUERY against that data, and CFDUMP it, it\'s truncated to 64000 characters.

I'm using CF8 and SQL2000. I'm sto开发者_运维技巧ring a bunch of HTML in a Text field in my SQL table. When I do a simple CFQUERY against that data, and CFDUMP it, it's truncated to 64000 characters.

I've confirmed that my data is complete in the SQL table, by selecting the tail end of the data using SELECT Substring, and confirmed the length using SELECT Datalength(). It's really 65102 characters long.

Is this a limitation of CFQUERY, and if so, what's a good way around this?


This is a CF Administrator datasource setting.

Edit the datasource, view the Advanced section, and increase from 64,000 to an appropriate value.


I agree with Peter, this sounds like you do not have CLOB enabled. By default, ColdFusion creates DSNs with this setting disabled which limits text retrieval to 64K. To expand on Peters directions, do the following:

  • Login to ColdFusion Administrator
  • Under Data & Services, select Data Sources
  • Click on your Data Source Name in question
  • Click the Show Advanced Settings button
  • 11 fields below the button, find CLOB and click the checkbox to "Enable long text retrieval (CLOB)"
  • Go back up and click the Submit button to save.

0

精彩评论

暂无评论...
验证码 换一张
取 消