SQL Server 2025 is Microsoft's flagship relational database management system (RDBMS), a comprehensive platform for enterprise data storage, processing, and analytics that runs on both Windows and Linux. This release, generally available since November 2025, introduces transformative capabilities including native AI integration with vector search and DiskANN indexing, a native JSON data type with binary storage and indexing, regular expression functions, and significant performance improvements through intelligent query processing. Understanding SQL Server's rich feature set—from core T-SQL syntax and indexing strategies to advanced capabilities like temporal tables, Always On availability, and in-memory OLTP—is essential for building scalable, high-performance database solutions.
What This Cheat Sheet Covers
This topic spans 33 focused tables and 290 indexed concepts, 180 flashcards. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
A jump-to index of every table row in this cheat sheet.
An interactive map of every table and concept in this topic.
Table 1: Core Data Types
Choosing the right data type is the first decision in any schema, and it shapes storage size, precision, and performance for the life of the table. Alongside the familiar integers, strings, and dates you'll find the two headline additions in 2025 — a native binary JSON type and a VECTOR type for AI embeddings — so it's worth knowing which workhorse to reach for and where the new options fit.
| Type | Example | Description | |
|---|---|---|---|
product_id INT | • Standard 4-byte integer ranging from -2,147,483,648 to 2,147,483,647 • the most common whole number type. | ||
order_total BIGINT | 8-byte integer supporting extremely large values (-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807). | ||
name VARCHAR(100) | • Variable-length string storing up to n characters (max 8,000)• uses only space needed plus 2 bytes overhead. | ||
title NVARCHAR(200) | • Unicode variable-length string supporting international characters • 2 bytes per character, max 4,000 characters. | ||
price DECIMAL(10,2) | • Fixed-precision numeric where p is total digits (1-38) and s is decimal places• essential for financial data. | ||
created_at DATETIME2 | • High-precision datetime with 100-nanosecond accuracy • range 0001-01-01 to 9999-12-31 • recommended over legacy DATETIME. | ||
birth_date DATE | • Date-only type (no time component) storing YYYY-MM-DD • 3 bytes storage. | ||
event_time TIME | • Time-only type (no date) with 100-nanosecond precision • range 00:00:00.0000000 to 23:59:59.9999999. | ||
is_active BIT | • Boolean-like type storing 0, 1, or NULL • multiple BIT columns in one table share storage bytes. | ||
session_id UNIQUEIDENTIFIER | • 16-byte GUID for globally unique values • typically populated via NEWID() or NEWSEQUENTIALID(). | ||
metadata JSON | • Native JSON type (new in 2025) with optimized binary storage up to 2GB • supports indexing and faster access than NVARCHAR. | ||
embedding VECTOR(768) | • Vector data type (new in 2025) for AI embeddings and similarity search • stores fixed-dimension floats in single-precision (4-byte) or half-precision (2-byte). | ||
file_data VARBINARY(MAX) | • Variable-length binary up to n bytes• MAX allows up to 2GB for storing files, images, or encrypted data. | ||
config XML | • XML document storage with schema validation and XQuery support • max 2GB. |