SQL Flow Field Guide

:List

Check your sqlcmd client variant and platform

Show the statements waiting in the client buffer.

Syntax at a glance

:List

Work example

Review a batch before sending it

Type SELECT 1 into an interactive lab session. Use :List before entering GO.

Check your work The SELECT statement appears in the listing and has yet to return a query result.

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