Overview

Honey, a small Shih Tzu with a brass-riveted eye patch, green bows and a flowered bandana

A database is an organized store of information, kept in tables of rows and columns, a bit like a set of spreadsheets that many programs can share at once. SQL Server is Microsoft's database program, and T-SQL is the language you use to ask it questions and change its data.

This section of The Geeks Forge is a knowledge base for looking after SQL Server and writing good T-SQL. Many pages follow the same pattern: a PowerShell script collects facts from the servers, SQL Server stores them, and a simple web page (built with Blazor) shows them so problems are easy to spot.

Where to begin

If you are new, start with Inventory baseline: knowing which servers you have comes before backup or index work. Then read the Maintenance Outline, which shows how all the topics fit together and what to learn next. Every page is also in the menu on the left, in the same groups as below.

Start here

Ops maintenance (01-10)

Stored Procedures

Functions

T-SQL deep-dives (13-17)

T-SQL deep-dives (18-23)

T-SQL deep-dives (24-29)

T-SQL deep-dives (30+)

Implementation spikes

SQL CLI