SQL Server Facets-data types

Source: Internet
Author: User

SQL Server changes blob-related data types starting with 2005, such as text and ntext to varchar (max) and nvarchar (max), and image to varbinary (max). 2008 continues to add some new time-and date-related data types, as well as special data types that work with hierarchical data.

Data Type Overview

  The data types in SQL Server are summarized in the following categories:

exact numbers

unicode string

approximate number

binary string

date and time

Other data types

String

?

Exact numbers

bigint

numeric

bit

smallint

decimal

smallmoney

int

tinyint

Money

??

Approximate numbers

Float

Real

Date and time

date

datetimeoffset

datetime2

smalldatetime

Datetime

Time

String

char

varchar

Text

??

Unicode string

nchar

nvarchar

ntext

??

Binary string

binary

varbinary

Image

??

Other data types

cursor

timestamp

hierarchyid

uniqueidentifier

sql_variant

xml

Table

Space type

SQL Server Facets-data types

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.