I am browsing the SQL Server Management Studio Object Explorer: the metadata. Under the TempDb > Views > System Views > Columns object I find: "Numeric Precision Radix". I know what radix means (binary, decimal, hexidecimal, etc) and what Numeric Precision means (how many digits are in the representation of the number, and Scale: how many digits are after the radix point).
But how can the metadata itself (Numeric Precision) have a Radix (system of encoding)? It is like saying what color is the CAN of paint?
And why can't I find a description of this phrase anywhere? Thank you.
I believe that
Numeric_Precision_Radix
is specified in the Information_Schema.Columns table as specified by the SQL-99 standard.It will be different for each DBMS. according to this link it is specified as:
For SQL Server it is 10 for
int
,money
anddecimal
and 2 forfloat
&real
. See below for example where for float where the radix is 2 and the precision is 53, meaning that the it is precise to 53 bits of information.In other words for int precision is expressed in terms 10 to the power of 10 but for real it is expressed as 2 to the power of 53.
See wiki link here
SQL Fiddle
MS SQL Server 2008 Schema Setup:
Query 1:
Results: