×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

calling Stored procedure from crystal reports truncates strings to 255

calling Stored procedure from crystal reports truncates strings to 255

calling Stored procedure from crystal reports truncates strings to 255

(OP)
I have a crystal report (using seagate info designer 7.0.2.200) that simply displays the results of a stored procedure (from SQL Server 2000).

Problem: a long text string (varchar) that the stored procedure sends, gets truncated to 255 characters in my crystal report.

Is there a way to get crystal to display more than 255 characters of a varchar string?

RE: calling Stored procedure from crystal reports truncates strings to 255

I think the 255 limit is a feature of Crystal, only extended in Crystal 9

Madawc Williams
East Anglia, Great Britain

RE: calling Stored procedure from crystal reports truncates strings to 255

254 is a limit for Crystal formula output, and you also can't use fields over 254 for sorting, grouping or selecting records.

A varchar exceeding 254 which is placed in the details should display just fine.

As Madawc stated, this was not corrected until CR 9.

-k

RE: calling Stored procedure from crystal reports truncates strings to 255

You can display more than 255 characters by splitting the field in the SQL Procedure and returning 255 character "chunks".

e.g. SELECT Table.Longstring FROM Table

could be coded as:

SELECT

decode(truncate(length(Table.Longstring)/255)-10,-1,'',
substr(Table.Longstring,2550,255)) S10,

decode(truncate(length(Table.Longstring)/255)-9,-1,'',
substr(Table.Longstring,2295,255)) S9,

decode(truncate(length(Table.Longstring)/255)-8,-1,'',
substr(Table.Longstring,2040,255)) S8 ...

FROM

Table


I hate to think how slow this would be, but it would achieve the required result.

RE: calling Stored procedure from crystal reports truncates strings to 255

I think what you mean is to parse it in SQL code, which shouldn't cause horrible performance.

A SQL Expression works for this.

-k

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close