Microsoft® SQL Server 2008 R2 Unleashed
by Ray Rankins, Paul Bertucci, Chris Gallelli, Alex T. Silverstein
New Data Types
SQL Server 2008 introduces a handful of new data types. Two of the most welcome of these are the new DATE and TIME data types. These new data types allow you to store date-only and time-only values. In addition, SQL Server now supports the DATETIME2 and DATETIMEOFFSET data types. DATETIME2 is a variation of the DATETIME data type that supports datetime values from 0001-01-01 to 9999-12-31 23:59:59.999999. DATETIMEOFFSET supports UTC-based datetime values that are time zone aware.
The new Hierarchyid data type is a common language runtime (CLR) user-defined type (UDT) that provides a mechanism for representing and storing a tree structure in a table in an efficient manner. This data type is useful for storing data that represents ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access