SQL Server tutorials

SQL Server Tutorials: Learn T-SQL Step by Step

Every SQL Server tutorial on DatabaseFAQs.com in one place, grouped by what you’re trying to do. Start with installation and your first table, then work through queries, joins, stored procedures and triggers.

Stuck on an error? Jump straight to Errors and fixes.

  • 175free SQL Server tutorials
  • 16topics
  • Oct 2026last updated

New to SQL Server? Start here

Read these in order. Each one builds on the one before it.

  1. How to Install SQL Server 2022 Express EditionGet a free SQL Server instance running on Windows.
  2. How to Install SQL Server Management Studio [SSMS]Install SSMS, the tool you'll use for every lesson.
  3. How to create a database in SQL Server 2019Create your first database.
  4. SQL Server Add Column: ALTER TABLE ADD With ExamplesShape tables as your data changes.
  5. SQL Server INNER JOINCombine rows from related tables.
  6. SQL Server Create Stored Procedure: Syntax, Parameters and ExamplesPackage your queries into reusable procedures.

The basics3

What it is, what it's good for, and the questions people ask before they commit to it.

Install, connect and tools11

Install it, connect to it, and get your tools working.

Databases, tables and columns18

Create and change databases, tables, columns, keys, indexes and views.

Data types6

Pick the right data type for every column.

SELECT queries, filtering and grouping7

Read data with SELECT, filter it, sort it and summarize it.

Joins22

Combine rows from two or more tables.

Insert, update and delete4

Add, change and remove rows safely.

Strings, numbers and conversions4

Work with text and numbers, and convert between types.

Dates and times7

Format, compare and calculate dates and times.

Functions7

Built-in functions and the ones you write yourself.

Stored procedures, variables and control flow26

Stored procedures, variables, IF/CASE logic, loops, error handling and transactions.

Triggers20

Run code automatically when rows are inserted, updated or deleted.

Users, logins and permissions3

Create users, reset passwords and grant the right permissions.

Backup, import/export and administration14

Back up, restore, import, export, migrate and monitor.