November 2003
Intermediate to advanced
816 pages
14h 53m
English
SQL Server supports a wide variety of native data types which may be used for column data type in a CREATE TABLE statement and for local variables and function return types. Virtually all SQL-92 data types are supported as well as a few additional ones as shown in Table 2-15.
| T-SQL Data Type Name | SQL-92 | General Comments Each type is described individually in the following sections. |
|---|---|---|
| BIGINT | ||
| BINARY | SQL-92 has BLOB (binary large object) | |
| BIT | Yes | SQL-92 has a different BIT data type. |
| CHAR | Yes | |
| DATETIME | SQL-92 has DATE and TIME | |
| DECIMAL | Yes | |
| FLOAT | Yes | |
| IMAGE | SQL-92 has BLOB (binary large object) | |
| INT | Yes | |
| MONEY | ||
| NCHAR | Yes | |
| NTEXT | ||
| NVARCHAR | Yes | |
| NUMERIC | Yes | |
| REAL | Yes | |
| SMALLDATETIME | ||
| SMALLINT | Yes | |
| SMALLMONEY | ||
| SQL_VARIANT | ||
| SYSNAME ... |
Read now
Unlock full access