Microsoft
Software
Hardware
Network
Question : Convert/Cast
What is the best way to convert the decimal value: 3.500000000 to a money value eg. 35,000,000.00
the data type is stored in the database as decimal(20,6) and then in the qury its multiplied by a value (1.0000 ..this value varies) ...how can i get it to show as a monetary value.
Thanks!
Answer : Convert/Cast
select cast(cast(fieldname as money)*1,0000) as decimal 10,2) from table
you could also try this....
http://www.siccolo.com/Art
icles/SQLS
cripts/how
-to-create
-sql-
to-fo
rmat-curre
ncy.html
Random Solutions
Store file in mysql using connector.net and blob field
Video Chat Capabilities
Shell command doesn't work on all computers
Infopath Form service comparison between SharePoint 2007 and SharePoint 2010
How can I parse the following string, store it in a variable and then use those variables to populate some txt fields?
Word 2002/xp: Error Message: "Run-time error '4248'; 'This command is not available because no document is open.'"
sbs 2008 backup configuration
Setting msExchMailboxSecurityDescr
iptor with VB.NET
Error string in catch block?
String manipulation - SLB FP Equity --> SLBP.PA