SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Trying to Convert a nvarchar (30) to a number
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

andersonb
Starting Member

5 Posts

Posted - 09/07/2012 :  16:24:18  Show Profile  Reply with Quote
I need to convert a nvarchar (30) to a number so that it will SUM in Report Builder 2.0. Can you help?

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 09/08/2012 :  07:35:00  Show Profile  Reply with Quote
You can use an expression either in the SUM or in the data column itself - something like this:
=SUM(CDbl(Fields!YourCharColumn.Value))
I don't have report builder 2.0, I am guessing based on 3.0, but I don't think this part has changed much.
Go to Top of Page

andersonb
Starting Member

5 Posts

Posted - 09/10/2012 :  07:46:15  Show Profile  Reply with Quote
[quote][i]will give that a try. Thanks!

Edited by - andersonb on 09/10/2012 07:48:04
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.05 seconds. Powered By: Snitz Forums 2000