SQL Flow Field Guide

:Connect

Check your sqlcmd client variant and platform

Open a connection to another SQL Server instance.

Syntax at a glance

:Connect server[\instance]

Work example

Switch between approved lab instances

Use your approved lab instance name and existing authentication. After changing the connection, check the server and database identity with a read-only SELECT.

Check your work The server and database match the intended lab target before you enter another batch.

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