Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Reporting Services
»
Reporting Services 2005 Development
»
Trailing Spaces on Grouped Column
Trailing Spaces on Grouped Column
Rate Topic
Display Mode
Topic Options
Author
Message
Welsh Corgi
Welsh Corgi
Posted Wednesday, January 11, 2012 10:43 AM
Hall of Fame
Group: General Forum Members
Last Login: Yesterday @ 4:10 PM
Points: 3,832,
Visits: 4,051
I was Grouping by City in a Report but the Column had Trailing spaces so I modified the Sp to Trim the spaces.
Is this the only option or are there other ways to handle this?
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1234196
Daniel Bowlin
Daniel Bowlin
Posted Wednesday, January 11, 2012 11:33 AM
SSCrazy
Group: General Forum Members
Last Login: Yesterday @ 8:49 AM
Points: 2,672,
Visits: 2,417
This is something I would generally do in the SP when that option is available to me. However, you can also do it in the report using expressions. You can group on an expression that contains TRIM(YourColumnName) as well as make a similar expression for the display of the data.
Post #1234240
Welsh Corgi
Welsh Corgi
Posted Wednesday, January 11, 2012 11:36 AM
Hall of Fame
Group: General Forum Members
Last Login: Yesterday @ 4:10 PM
Points: 3,832,
Visits: 4,051
Thanks!
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1234243
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.