SQL Flow Field Guide

SHUTDOWN

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

admin

What changes

Input
none
Output or change
stops the instance

Syntax at a glance

SHUTDOWN [ WITH NOWAIT ]

Work example

A planned maintenance window requires a controlled instance shutdown.

Use the operations runbook and confirm owner approval, service dependencies, and restart checks before scheduling it.

Check your work SHUTDOWN. The instance stops only in the approved window and all dependent services pass their restart checks.

Open Microsoft Learn for full syntax, permissions, and details for your version.