cybercop23
IS-IT--Management
Hi all.
I have some data that I'm importing from an ODBC. The source data is money represented as 123456 (1234.56). I import it as char(8) but need to display it to the user as 1,234.56.
I tried convert, but it truncates the cents:
CONVERT(smallmoney, Amount/100) 123456 -> 1234.0000
CAST(Amount/100 as smallmoney) 123456 -> 1234.0000
Any suggestions?
I have some data that I'm importing from an ODBC. The source data is money represented as 123456 (1234.56). I import it as char(8) but need to display it to the user as 1,234.56.
I tried convert, but it truncates the cents:
CONVERT(smallmoney, Amount/100) 123456 -> 1234.0000
CAST(Amount/100 as smallmoney) 123456 -> 1234.0000
Any suggestions?