Identifying Data Types2
Identifying Data Types2
Data type represents the type of data that a database object can contain. This
data can be in the form of characters or numbers. You can store the following
types of data in a database:
The data types supported in SQL Server can be organized into the
following categories:
Numeric
Character string
Date and time
Binary
Others
Numeric
The numeric data types allow you to store integer values in the
database. The following table lists the numeric data types supported
by SQL Server.
The character and string data types allow you to store text values in
the database. The following table lists the character and string data
types supported by SQL Server.
The preceding table lists various data types, such as char, varchar,
nchar, and nvarchar, which are used for storing character data.
However, you must know the difference in using these data types. The
following list describes the differences between these data types: