Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 ssrs 2008 r2 display

Author  Topic 

jassie
Constraint Violating Yak Guru

332 Posts

Posted - 2013-11-03 : 11:21:43
In an sql server 2008 r2 report, I have one textbox that I need to concantenate values together. I then need to concatenate the values together to display in one cell that looks like the following:

1. Company number
2. 5 spaces
3. company number that is varchar(5)
4. 5 spaces
5. company name
6. 5 spaces
7. company number that is varchar(30).

Thus can can you show me how to display the values in the order the customer wants to see them in the one cell?


visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-11-03 : 13:16:22
just use & as concatenation operator. for inserting spaces use Space(5)
Rest is same as in

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=189356

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -