SQL Server Data Type Precedence¶
-
When an operator combines expressions of different data types, the data type with the lower precedence is first converted to the data type with the higher precedence.
-
Data type synonyms are included in SQL Server for ISO compatibility. Data type synonyms can be used instead of the corresponding base data type name in data definition language (DDL) statements, such
DECLARE @variable
,CREATE TABLE
orCREATE FUNCTION
. -
Shows the similarities and differences between the DATETIME and SMALLDATETIME data types.
-
Shows the similarities and differences between the DATETIME and DATETIME2 data types.
-
Shows the differences between the GEOMETRY and GEOGRAPHY data types.
-
Shows the similarities and differences between the MONEY and SMALLMONEY data types.
-
Spatial Instantiable Data Types
SQL Server introduced three new spatial instantiable types, namely CircularString, CompoundCurve and CurvePolygon, which are circular arc segments. A circular arc segment is defined by three points in a two dimensional plane and the third point cannot be the same as the first point.