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
 General SQL Server Forums
 New to SQL Server Programming
 error message

Author  Topic 

usafelix
Posting Yak Master

165 Posts

Posted - 2015-01-01 : 23:31:41
Error Converting data type nvarchar to numeric. Have any simple way just change the nvchar to numeric to display.

Analy_code25 as commission contain data in below :
----------------------------------------------------
0
blank record
13
25
0
blank record
999
-------------------------------------------------
My sql query :

RTRIM(dbo.item.anly_code25) AS commission,
CONVERT(int,dbo.trx_dat.item_qty) AS qty,

CAST(CONVERT(numeric(36, 2),dbo.item.anly_code25) * dbo.trx_dat.item_qty AS numeric(36, 2)) AS total_commission,
-------------------------------------------------
Please direct edit my sql query . thanks

mandm
Posting Yak Master

120 Posts

Posted - 2015-01-02 : 07:42:20
Try a similar approach to what I replied on this question.

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=198037
Go to Top of Page
   

- Advertisement -