flaniganmj
Technical User
If a SQL Server 2000 table looks like this:
PK Value
-- ------
1 3.6456
where PK=int and Value=decimal(15,4)
Why would...
...return the following in Query Analyzer...
[tt]
Value0 Value1
------ ------
3.65 3.6456
[/tt]
And...
...will print
[tt]
3.6456
[/tt]
Additionally, when using the value in a calc it is rounding first???
Regards,
mjf
PK Value
-- ------
1 3.6456
where PK=int and Value=decimal(15,4)
Why would...
Code:
select
Value Value0,
Convert(varchar(20),Value) Value1
from
table
where
PK=1
[tt]
Value0 Value1
------ ------
3.65 3.6456
[/tt]
And...
Code:
declare @p decimal(15,4)
select
@p=Value
from
table
where
Value=1
print @p
...will print
[tt]
3.6456
[/tt]
Additionally, when using the value in a calc it is rounding first???
Regards,
mjf