0% found this document useful (0 votes)
2 views

MS SQL Data Types

The document provides a comprehensive overview of various data types used in databases, including exact numerics like bigint and decimal, approximate numerics such as float and real, and date and time types like datetime and date. It also covers character strings, binary strings, and other data types like uniqueidentifier and xml. Each data type is accompanied by its range and specifications.
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

MS SQL Data Types

The document provides a comprehensive overview of various data types used in databases, including exact numerics like bigint and decimal, approximate numerics such as float and real, and date and time types like datetime and date. It also covers character strings, binary strings, and other data types like uniqueidentifier and xml. Each data type is accompanied by its range and specifications.
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Açık Ad Ara

-2^63 (-9,223,372,036,854,775,8
bigint
(9,223,372,036,854,775,807)

bit 1, 0, or NULL

Exact
Numerics
decimal(18, 0) Dec - 10^38 +1 through 10^38 - 1

int -2^31 (-2,147,483,648) to 2^31-1

money -922,337,203,685,477.5808 to 92

numeric(18, 0)

smallint -2^15 (-32,768) to 2^15-1 (32,767

smallmoney - 214,748.3648 to 214,748.3647

tinyint 0 to 255

Approximate float Double precision float[(n)] for n = 8-15


Numerics real float[(n)] for n = 1-7

0001-01-01 through 9999-12-31


date
2007-05-08
datetime 2007-05-08 12:35:29.123
Date range 0001-01-01 throug
January 1,1 AD thro
Date and
Time Time range 00:00:00 through 2
datetime2(7)

2007-05-08 12:35:29.1234567
datetimeoffset(7) 2007-05-08 12:35:29.1234567 +1

smalldatetime 2007-05-08 12:35:00


time(7) 12:35:29. 1234567

char(10) character
Character
text
Strings
varchar(50) character varying

binary(50)
Binary
image
Strings
varbinary(50) Binary varying

hierarchyid

sql_variant
Other Data
timestamp
Types
uniqueidentifier

xml

geography

geometry

nchar(10) national character


ntext national text
?
nvarchar(50)

nvarchar(MAX)

varbinary(MAX)

varchar(MAX)

You might also like