PeterHegRT
Programmer
I'm puzzled about the space used to store numbers.
If you create the table...
create table testN (
cInt integer
,cNum10 numeric(10,0)
,cNum8_2 numeric(8,2)
)
and then do sp_help testN, you find that the integer takes 4 bytes, yet the numeric(10,0) takes 9, and the 8 with 2 dec places takes 5.
How is this space used?
- Peter
If you create the table...
create table testN (
cInt integer
,cNum10 numeric(10,0)
,cNum8_2 numeric(8,2)
)
and then do sp_help testN, you find that the integer takes 4 bytes, yet the numeric(10,0) takes 9, and the 8 with 2 dec places takes 5.
How is this space used?
- Peter