SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Left function in SSRS


Left function in SSRS

Author
Message
alladiz
alladiz
SSC Rookie
SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)

Group: General Forum Members
Points: 34 Visits: 192
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!!!!
sql1411
sql1411
SSC Journeyman
SSC Journeyman (92 reputation)SSC Journeyman (92 reputation)SSC Journeyman (92 reputation)SSC Journeyman (92 reputation)SSC Journeyman (92 reputation)SSC Journeyman (92 reputation)SSC Journeyman (92 reputation)SSC Journeyman (92 reputation)

Group: General Forum Members
Points: 92 Visits: 96
Try to do this in your underlying query and see if works there.
alladiz
alladiz
SSC Rookie
SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)

Group: General Forum Members
Points: 34 Visits: 192
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...
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search