SQL Flow Field Guide

sys.sp_server_info

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

Returns a list of attribute names and matching values for SQL Server, the database gateway, or the underlying data source.

What changes

Input
Returns a list of attribute names and matching values for SQL Server, the database gateway, or the underlying data source.
Output or change
No write is stated in the Microsoft summary.

Syntax at a glance

sys.sp_server_info [ [ @attribute_id = ] attribute_id ]
[ ; ]

Work example

Returns a list of attribute names and matching values for SQL Server, the database gateway, or the underlying data source.

Read the parameter list and identify the provider operation it supports. Do not call it directly from application T-SQL.

Check your work Why does Microsoft limit direct calls to this procedure?

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