SQL Flow Field Guide

sys.sp_configure

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

spconfigure displays or changes global configuration settings for the current server.

What changes

Input
Not stated in the Microsoft summary.
Output or change
Not stated in the Microsoft summary.

Syntax at a glance

sys.sp_configure
    [ [ @configname = ] 'configname' ]
    [ , [ @configvalue = ] configvalue ]
[ ; ]

Work example

spconfigure displays or changes global configuration settings for the current server.

Write a proposed call on paper. Name the target, required permission, expected change, and recovery step before any lab use.

Check your work Displays the selected server setting. The call omits @configvalue, so it does not request a setting change.

Practice SQL

Open in SQL Flow

Open the SQL for a walkthrough. Run the example in SQL Server to check its result.

EXEC master.sys.sp_configure @configname = 'max server memory (MB)';

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