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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 ssrs 2008 r2 display
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

332 Posts

Posted - 11/03/2013 :  11:21:43  Show Profile  Reply with Quote
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?

Very Important crosS Applying yaK Herder

52326 Posts

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

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000