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 |
datagod
Starting Member
37 Posts |
Posted - 2006-04-05 : 12:16:05
|
I ran the following code on 2000, but in 2005 (Management Studio) the formatting for the decimal numbers is way off. Any ideas how to change this? I looked everywhere. Thanks.
-- Same code generated different formatting declare @test decimal(10,2) select @test = 100
select convert(int,@test), @test
SQL 2005 - Mangement Studio
----------- --------------------------------------- 100 100.00
SQL 2000 - Query Analyzer
----------- ------------ 100 100.00
|
|
jen
Master Smack Fu Yak Hacker
4110 Posts |
Posted - 2006-04-07 : 04:40:48
|
not sure what you mean, but they look the same, unless i need to have my eyes checked...
which is way off?
-------------------- keeping it simple... |
 |
|
datagod
Starting Member
37 Posts |
Posted - 2006-04-12 : 10:55:25
|
The answers are the same, the length of the formatted output is different (about 40 characters in 2005 v.s. 11 in 2000).
It messes up a report that runs on both environments. |
 |
|
|
|
|