All datasets

Technology · Reference dataset

SQL Server Data Types

SQL Server data types, with descriptions, size limits, and storage requirements.

Download options
Look inside

Preview the records

The 10 most recently added of 35 records · Select a column heading to sort.

Preview of SQL Server Data Types
ID Data type Description Max size Storage
35 table Stores a result-set for later processing
34 cursor Stores a reference to a cursor used for database operations
33 xml Stores XML formatted data. Maximum 2GB
32 uniqueidentifier Stores a globally unique identifier (GUID)
31 sql_variant Stores up to 8,000 bytes of data of various data types, except text, ntext, and timestamp
30 timestamp Stores a unique number that gets updated every time a row gets created or modified. The timestamp value is based upon an internal clock and does not correspond to real time. Each table may have only one timestamp variable
29 datetimeoffset The same as datetime2 with the addition of a time zone offset 8-10 bytes
28 time Store a time only to an accuracy of 100 nanoseconds 3-5 bytes
27 date Store a date only. From January 1, 0001 to December 31, 9999 3 bytes
26 smalldatetime From January 1, 1900 to June 6, 2079 with an accuracy of 1 minute 4 bytes

CSV / JSON / XML

Put this data to work.

All 35 records, in your choice of format.

  • This dataset and the rest of the catalog
  • Complete CSV, JSON, and XML files
  • Category ZIPs and API access
Get a Data Pass: $69

365 days of access to the catalog. One payment, no automatic renewal.

Your key arrives by email after payment. Use it here to download the complete file.

Already have a pass?

Your key is used for this request and is not saved by this page.

Commercial use is allowed, free or paid.

Downloaded a CSV? Convert CSV to JSON, generate SQL inserts, remove duplicate lines, or sort a list with the free tools.

Scope and sources

Last checked against sources: October 15, 2026.

Last changed: July 17, 2026. This is when we last changed the data or its description. It doesn’t mean the data runs up to that date.

A complete download includes all 35 records currently held in this dataset. Check the description and sources to decide whether its scope fits your project.

Use this dataset through the API
GET https://mysafeinfo.com/api/data/sqlserverdatatypes

Choose a format, sort, or request fewer rows. A pass key gives access to the complete dataset. See the examples and parameters.

Without a pass, sorting and randomization apply only to the fixed 10-row sample.

More in Technology

SQL Keywords Country-Code Top-Level Domains HTTP Status Codes Microsoft Access Data Types MIME Types Programming Languages

Download a category with your pass