Crystal Reports 8.5 Truncates Varchar fields larger then 255 characters 
Author Message
 Crystal Reports 8.5 Truncates Varchar fields larger then 255 characters

I was having a lot of trouble getting my data to display correctly.
SQL Server supports varchar fields up to 8000 characters in length.
When returning this data to Crystal Reports 8.5 from a stored
procedure, it would truncate my results to about 255 characters in
length.  The answer to my problem was simple - cast my data as a text
field.

example:

Create Procedure dbo.sprReportTest
(

)
As

    set nocount on


    SELECT

    FROM
        [MyTable]
    WHERE

    SELECT

    return



Sat, 10 Apr 2004 03:55:46 GMT  
 Crystal Reports 8.5 Truncates Varchar fields larger then 255 characters
Hi Lewis,
Thanks for the handy tip.  I'm having the very same truncation
problem, but with CR input parameters, not display data.  Are you
aware of a workaround to allow more than 255 chars in an input
parameter?

Thanks,
Michael Compton


Quote:
> I was having a lot of trouble getting my data to display correctly.
> SQL Server supports varchar fields up to 8000 characters in length.
> When returning this data to crystal reports 8.5 from a stored
> procedure, it would truncate my results to about 255 characters in
> length.  The answer to my problem was simple - cast my data as a text
> field.

> example:

> Create Procedure dbo.sprReportTest
> (

> )
> As

>     set nocount on


>     SELECT

>     FROM
>         [MyTable]
>     WHERE

>     SELECT

>     return



Mon, 12 Apr 2004 09:29:42 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Data in varchar(2000) field truncated at 255 characters on report

2. Truncated Varchar(600) field to 255 Characters

3. Crystal Truncates My VarChar to 255 Chars

4. Diary field is truncated when previewing a Crystal Reports 8.5

5. Why is field is truncating at 255 characters?

6. SQL Server varchar(8000) being truncated to char(255)

7. SQL Strings appear to truncate to 255 characters

8. Exporting Notes Truncates to 255 Characters

9. why truncate to 255 characters?

10. PB with VB 5 and Crystal Report Pro 6 (Parameter more than 255 characters)

11. why truncate to 255 characters?

12. ADO Command object seems to truncate after 255 characters

 

 
Powered by phpBB® Forum Software