• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

NVARCHAR(MAX) string gets truncated when displayed in CF

New Here ,
Sep 23, 2013 Sep 23, 2013

Copy link to clipboard

Copied

Hi, all.  I have a stored procedure that returns a NVARCHAR(MAX) string of about 35,500 characters.  When I execute the stored Procedure using Sql Server Manager, all 35,500 characters appear.  However, when I try to display this string or store this in a Cold Fusion Variable on a .cfm page, only the first 32,000 characters get displayed.

Could someone please help me?

Thank you!

TOPICS
Database access

Views

3.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 13, 2013 Nov 13, 2013

Copy link to clipboard

Copied

Hi,

Try looking at the data source in the CF Administrator. Click on 'Show Advanced Settings', and look for the following fields:

Capture.PNG

CLOB (and BLOB) is not enabled by default, and if the Long Text Buffer is set to 32,000 for your data source, then that will probably explain the truncation you're seeing. If you enable CLOB, then the Long Text Buffer value becomes irrelevant (and the same for BLOB/Blob Buffer).

HTH.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 14, 2017 Jun 14, 2017

Copy link to clipboard

Copied

LATEST

Enabling CLOB option in the Advanced setting allowed me to display 1150000 characters as well.

Apart from this, if we increase the Long Text Buffer (chr) value to a sufficient large value, that will also going to work.

Thanks MCTunes​ for the answer.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation