Pcornel
Browse topics
Options
Recent
Favorites
Databases · Technical reference

Microsoft SQL Server

Direct 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.

When to use this

Use it to operate or troubleshoot SQL Server instances.

First 30 seconds

1. Instance up and version: SELECT @@VERSION.

2. Errors: SQL Server error log (EXEC xp_readerrorlog).

3. Waits and blocking DMVs.

4. Log file growth and backups.

5. Agent jobs status.

Operational verification

client → TDS (1433) → auth → engine → buffer pool/log → data files

Evidence · next step

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. Preserve the first divergent observation and repeat the same bounded verification after remediation.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
What not to infer

Databases owns SQL Server engine semantics. Windows owns host/service/AD foundations; Storage owns physical storage; Networking owns listener/routing paths.

Platform / version applicability
MariaDB / MySQL / PostgreSQL / Microsoft SQL Server concepts
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformMariaDB / MySQL / PostgreSQL / Microsoft SQL Server concepts · Databases owns SQL Server engine semantics. Windows owns host/service/AD foundations; Storage owns physical storage; Networking owns listener/routing paths.
Scope / prerequisiteUse it to operate or troubleshoot SQL Server instances.
What next?3 suggested next steps
Child topics (this level)3
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification workflow Verify boundary

Identify instance and database, SQL Server version/edition, authentication path and recovery model. Check database state, log reuse wait, backup chain and file free space; for availability groups verify replica role/synchronization and listener path separately.

Step 2 Failure signatures and limits Narrow the fault

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.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

test · 1
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Set max server memory, check recovery models and log backups, monitor waits (sys.dm_os_wait_stats), and use Query Store for plan regressions.

Key checks
  • SELECT * FROM sys.dm_exec_requests; — running requests
  • psql -c "SELECT now(), version();" — PostgreSQL reachable and version
  • mysql -e "SELECT NOW(), VERSION();" — MariaDB/MySQL reachable and version
  • sqlcmd -S <server> -Q "SELECT @@VERSION" — SQL Server reachable and version
ReferenceWhat it is1 section · depth on demand

Operating model

Microsoft SQL Server covers instance/database boundaries, services, authentication, data/log files, transaction-log behavior, recovery models, backup/restore and Always On availability concepts. The transaction log is a durability/recovery mechanism whose reuse/truncation behavior depends on recovery model and backup/replication state.

ReferenceHow it works1 section · depth on demand

In depth

Microsoft SQL Server is a relational database widely used for Windows and .NET applications, available on Windows, Linux and as Azure SQL services. Operations centre on its recovery models, backup chain, Always On availability groups and security integration with Active Directory.

AreaPractice
Recovery modelFULL for point-in-time recovery (requires log backups); SIMPLE for non-critical databases
BackupFull + differential + transaction log backups; test restores (RESTORE VERIFYONLY is not enough)
HA/DRAlways On availability groups, failover cluster instances, log shipping
SecurityWindows authentication, least-privilege roles, TDE/Always Encrypted, disable sa
MaintenanceIndex and statistics maintenance (e.g. Ola Hallengren scripts), DBCC CHECKDB
MonitoringQuery Store, DMVs, wait statistics
SELECT name, recovery_model_desc, log_reuse_wait_desc FROM sys.databases;
SELECT TOP 10 wait_type, wait_time_ms FROM sys.dm_os_wait_stats ORDER BY wait_time_ms DESC;

A transaction log that keeps growing usually means missing log backups in FULL recovery or a blocked replica — check log_reuse_wait_desc.

ReferenceImportant terms & boundaries1 section · depth on demand

Scope map

  • Instances and databases
  • Services and authentication modes
  • Data/log files
  • Transaction log
  • Recovery models
  • Backup/restore
  • Always On concepts
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

Microsoft SQL Server SQL Server 2019 or laterConfirm instance, edition and database recovery model.

Assumptions: sqlcmd installed; Windows or SQL authentication as appropriate.

sqlcmd -S sql01 -E -Q "SELECT @@SERVERNAME AS server, SERVERPROPERTY('Edition') AS edition, SERVERPROPERTY('ProductVersion') AS version;"
sqlcmd -S sql01 -E -Q "SELECT name, recovery_model_desc, state_desc FROM sys.databases;"

Expected output

Microsoft SQL Server SQL Server 2019 or laterSELECT name, recovery_model_desc, state_desc FROM sys.databases WHERE name = 'AppDb';

Expected state: The application database is ONLINE with the recovery model the backup plan expects.

name    recovery_model_desc   state_desc
------- --------------------- ----------
AppDb   FULL                  ONLINE
FULL recovery needs regular log backups or the transaction log keeps growing; SIMPLE cannot restore to a point in time. Illustrative authored output: field layout matches the tool, values will differ in your environment.
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-29 · vendor docMariaDB / PostgreSQL / Microsoft SQL Server concepts SQL Server current documentation

Documentation verification: confirms the upstream model used by the Topic. It does not assert local production behavior.

Basis: https://learn.microsoft.com/en-us/sql/database-engine/sql-database-engine · confidence 92%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
microsoft sql serverSQL Server operationsMSSQL transaction logAlways On availability group
Embedded reference data

Quick lookup tables

Microsoft SQL Server verification boundary matrix

A compact lookup separating intent, owning component state, effective state and consumer-visible outcome for Microsoft SQL Server.

BoundaryInspectHealthy interpretationDo not infer
IntentInstances and databasesIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeServices and authentication modes / Data/log filesOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateTransaction logIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeRecovery modelsThe original bounded check succeeds in the same time windowProduction correctness outside this scope
Depth when you need it

Deep reference

Design & tradeoffs

Scope

Databases owns SQL Server engine semantics. Windows owns host/service/AD foundations; Storage owns physical storage; Networking owns listener/routing paths.

Confirmation

Confirm action

Continue?