All apps/sqlcmd

sqlcmd

sqlcmd

Microsoft's command-line tool for querying and managing SQL Server.

Runs as sqlcmd|macOS, Linux, Windows|github.com

Autocomplete

Generated from the command form · 12 options
Published once and never changed; check the digest before caching
sha256
01e6b2d4c024701b959ab0f441b5b52bf7e2909011358341361f261d0a16dc90
Size
2189 bytes
OptionsOn sqlcmd itself
-S
[protocol:]server[\instance][,port] <server>
-d
Database <database>
-U
Login <user>
-E
Trusted connection
-G
Microsoft Entra authentication
-C
Skips certificate validation.
-Q
Query (run and exit) <query>
-i
Comma-separated list without spaces. <input_file>
-o
Output file <output_file>
-b
Exit on error
-W
Trim trailing spaces
-s
Column separator <separator>