Data Types SQL
Data Types SQL
2008
Data Types
Numeric data
One of the most common
data types that you will
find within SQL Server
are numeric data types.
There are ten numeric
data types that ship with
SQL Server 2008.
Data Type
Range of Value
Storage
Space
tinyint
0 to 255
1 byte
smallint
-32,768 to 32,767
2 bytes
int
-231 to 231 -1
4 bytes
bigint
-263 to 263 -1
8 bytes
decimal(p,s)
numeric(p,s)
-1038 to 1038 -1
5 to 17 bytes
smallmoney
-214,748.3648 to 214,748.3647
4 bytes
money
-922,337,203,685,477.5808 to
922,337,203,685,477.5807
8 bytes
real
4 bytes
Float
4 bytes or 8
bytes
Binary Data
bit
Null, 0 and 1
bit