SQL Flow Field Guide

:ServerList

Check your sqlcmd client variant and platform

List SQL Server instances discovered by the client.

Syntax at a glance

:ServerList

Work example

Compare discovery with your approved lab inventory

Run :ServerList only in a network where discovery is approved. Compare its output with the managed list of lab instances.

Check your work Record differences. A missing instance in discovery needs a separate connectivity check.

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