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
 Development Tools
 Reporting Services Development
 Put commas (,) in report

Author  Topic 

SQLSoaker
Posting Yak Master

169 Posts

Posted - 2009-01-20 : 16:30:43
Hello,

How to put commas into the result sets of your report?

Need this:

100000 to be this: 100,000.

Thank u in advance.

Regards.

SQLSoaker
Posting Yak Master

169 Posts

Posted - 2009-01-20 : 17:26:36
Maybe I am missing something.

I have a stored procedure that I am using to generate the report out of SSRS.

I attach a new data source and use the exec call:

exec sp_mySP

In my sp, my select statements follow this format:

cast(isnull(c.balance,0) as decimal(10,2)) as [Current]


Now when I run the report the data is casted to a decimal with two places but there are no commas!

I have seen other reports that contain commas but am not seeing (at least with the code) how it is being accomplished, is this because I am casting in my sp?

Ugh.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-21 : 09:41:59
this should done by selecting the appropriate display format in table cell properties inside report layout tab
Go to Top of Page

SQLSoaker
Posting Yak Master

169 Posts

Posted - 2009-01-21 : 17:46:40
Thank you Tkizer, exactly what I was looking for. What don't you know? LOL.

I've decided to take my project and use SSRS to export to excel. Much better way.

Thanks for all the help thru out, much appreciated!
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-21 : 17:47:41
Well I do post a lot here on SQLTeam, but I can't take credit for anything in this thread. Credit goes to visakh16.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

SQLSoaker
Posting Yak Master

169 Posts

Posted - 2009-01-22 : 09:25:33
quote:
Originally posted by tkizer

Well I do post a lot here on SQLTeam, but I can't take credit for anything in this thread. Credit goes to visakh16.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog




My mistake, I'm use to you answering all my questions, thought you were visakh! Thank you visakh as well, you have also been very helpful.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-22 : 09:31:14
no problem...
Go to Top of Page
   

- Advertisement -