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.
| Author |
Topic |
|
sardinka
Posting Yak Master
142 Posts |
Posted - 2005-05-18 : 09:17:39
|
| How to reformat 2470.0000 to be $ 2470.00? |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-05-18 : 09:26:24
|
| select '$ ' + convert(varchar(30),convert(decimal(18,2),2470.0000))select '$ ' + ltrim(str(2470.0000, 18, 2))==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
jsmith8858
Dr. Cross Join
7423 Posts |
Posted - 2005-05-18 : 10:18:48
|
| don't convert numerics and dates to VARCHAR's in sql server to make things look pretty. return the VALUE. format your data at your presentation layer.- Jeff |
 |
|
|
|
|
|