Microsoft SQL Server
Cheat sheet · https://pcornel.dk/topic.php?topic=6092
Answer
Microsoft SQL Server is a relational database engine for Windows and Linux, managed with SSMS, sqlcmd and PowerShell (dbatools), with SQL Agent, Always On and rich DMVs.
Remember
Set max server memory, check recovery models and log backups, monitor waits (sys.dm_os_wait_stats), and use Query Store for plan regressions.
First checks
SELECT * FROM sys.dm_exec_requests;— running requestspsql -c "SELECT now(), version();"— PostgreSQL reachable and versionmysql -e "SELECT NOW(), VERSION();"— MariaDB/MySQL reachable and versionsqlcmd -S <server> -Q "SELECT @@VERSION"— SQL Server reachable and version
Verify in this order
client → TDS (1433) → auth → engine → buffer pool/log → data files
Where it usually breaks
Typical failures are connecting to the wrong instance, full transaction logs caused by missing log backups or blocked truncation, broken backup chains, database recovery states, authentication mode/SPN issues and confusing AG synchronization with application reachability.
Microsoft SQL Server verification boundary matrix
| Boundary | Inspect | Healthy interpretation | Do not infer |
|---|---|---|---|
| Intent | Instances and databases | Intended object/scope is explicit and versioned where relevant | Intent is already effective |
| Owning runtime/control plane | Services and authentication modes / Data/log files | Owner accepts and reports the expected object state | Downstream dependencies are healthy |
| Effective state | Transaction log | Independent read-back matches the intended state | Every client sees the same result |
| Consumer outcome | Recovery models | The original bounded check succeeds in the same time window | Production correctness outside this scope |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6092