Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Left function in SSRS Expand / Collapse
Author
Message
Posted Wednesday, May 8, 2013 10:26 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, September 22, 2014 5:56 AM
Points: 10, Visits: 191
Hi Members,
I have a SSRS report which displays a field value based on a expression. The expression uses left function. The expression is =left(UCase(Trim(Fields!xxxx.Value)),30). It displays 30 characters properly on the report viewer on report manager on DEV environment. We have deployed the same report to UAT environment. The same report after deployment on UAT is not working as it supposed to. It doesn't display all the 30 characters. It looks like it's truncating the data. For some records it shows only 17 characters and for some records it shows 14 characters so this behavior is unpredictable. We are using SQL Server 2008 R2 on both the machines.

Same thing is happening with another expression =trim(mid(UCase(Trim(Fields!xxxx.Value)),31,60))


Any pointers are greatly appreciated.


Thanks for your help in advance!!!!
Post #1450682
Posted Thursday, May 9, 2013 10:20 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, November 6, 2013 10:15 AM
Points: 54, Visits: 96
Try to do this in your underlying query and see if works there.
Post #1451251
Posted Friday, May 10, 2013 1:04 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, September 22, 2014 5:56 AM
Points: 10, Visits: 191
We have take a different route to do this. With the new change, all we do is pick the data from sql server. No more expressions on ssrs side. Thanks for your reply...
Post #1451428
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse